首页 > 移动平台 > 详细

IOS开发笔记:编译时出现的错误

时间:2015-09-29 23:17:53      阅读:1348      评论:0      收藏:0      [点我收藏+]

1、错误:apple Mach-o Linker error

   原因:compile source中有相同的.m文件

 

2、 self.navigationController is null
/**
 *I guess your currentViewController in not in navigation controller stack hierarchy . add currentViewController to navigationcontroller should solve yr problem
 *in App delegate has the window Object ,In AppDidFinishLaunching method First create object for yr firstcontroller then create NavigationControllerObject like - [[UINavigationController alloc]initWithRootViewController:yrcurrentcontroller]; [self.window addSubView:navigationController.view]
 */

 

3 -[NSNull countByEnumeratingWithState:objects:count:]: unrecognized selector sent to instance

如果你要是对一个数组进行forin操作

先数组里面判断有没有内容

IOS开发笔记:编译时出现的错误

原文:http://www.cnblogs.com/hl-iOS/p/4843700.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!