Invalid parameter not satisfying: [views count] == 3

1.Invalid parameter not satisfying: [views count] == 3

用到这个函数的时候,报了这个错,后来animated改为no就好了,查的显示,动画会引起奔溃

[self.pageViewController setViewControllers:@[_controllers[_currentTypeIndex]]

direction:UIPageViewControllerNavigationDirectionForward

animated:NO

completion:nil];

2.16.5.19  'NSInternalInconsistencyException', reason: 'UITableView (; layer =; contentOffset: {0, 0}; contentSize: {375, 415}>) failed to obtain a cell from its dataSource ()' 

原因:没有在调用之前注册    ps:快一个月没写代码了,手生了........

解决办法先注册cell才可以:[mTable registerNib:[UINib nibWithNibName:TESTIMAGECELL bundle:nil] forCellReuseIdentifier:TESTIMAGECELL];\

2.16.5.19  Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'table view row height must not be negative - provided height for index path ({length = 2, path = 0 - 1}) is nan'

我返回了一个nan,非整数,所以崩了

3.u3d项目打包到xcode

ld: warning: ignoring file /Users/apple/Desktop/iosU3dPro_test/Libraries/libiPhone-lib.a, file was built for archive which is not the architecture being linked (i386): /Users/apple/Desktop/iosU3dPro_test/Libraries/libiPhone-lib.a

Undefined symbols for architecture i386:

"_ALAssetsGroupPropertyName", referenced from:

___29-[OAlbumController GetAlbums]_block_invoke_2 in OAlbumController.o

-[OAlbumController GetAlbum:] in OAlbumController.o

"_OBJC_CLASS_$_ALAssetsFilter", referenced from:

objc-class-ref in OAlbumController.o

"_OBJC_CLASS_$_ALAssetsGroup", referenced from:

objc-class-ref in OAlbumController.o

"_OBJC_CLASS_$_ALAssetsLibrary", referenced from:

objc-class-ref in OAlbumController.o

"_RegisterModule_AI", referenced from:

RegisterStaticallyLinkedModules() in RegisterMonoModules.o

"_RegisterModule_Animation", referenced from:

RegisterStaticallyLinkedModules() in RegisterMonoModules.o

"_RegisterModule_Audio", referenced from:


解决办法:1.u3项目直接运行在xcode上  ,不要用模拟器,选择真机

2.如果非要使用模拟器,用如下方法(第一次需要以后就不用了)

上图来自:http://www.jianshu.com/p/44d150ec1807

3.上面的问题(这种问题多发于拿到不适自己的项目)

"_OBJC_CLASS_$_ALAssetsLibrary", referenced from:

objc-class-ref in OAlbumController.o

可能情况有两种:

1>OAlbumController.m  类没有添加  需要在build phases->complile sources查看是否有,没有就添加下

2>查看ALAssetsLibrary类使用时需要的框架是不是都添加了,可以百度下需要的框架,然后在build phases->link binary with libraries  里面检查是否缺失

4.2016.8.17  我又开始做项目了

clang: error: no such file or directory: '/Users/apple/Desktop/SigninViewController.m'

clang: error: no input files

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • 转至元数据结尾创建: 董潇伟,最新修改于: 十二月 23, 2016 转至元数据起始第一章:isa和Class一....
    40c0490e5268阅读 1,988评论 0 9
  • 这几天手机被6.18刷屏了,一直不明白年中活动为什么要选在6.18,而不是6.28或者6.30呢?那天看到“...
    齐镁慧励阅读 339评论 0 1
  • 原文地址:http://blog.csdn.net/jewes/article/details/42174893
    白马王朗阅读 201评论 0 0
  • 现如今我们的生活,好像离不开共享,比如共享单车 ,比如共享充电宝,再比如共享汽车,如今共享手机来了。这些领...
    创客资讯阅读 376评论 0 0
  • 勺子是一把银制小勺,得到它纯属一次偶然… 我喜欢这把勺子,如果没有它,眼前的这块抹茶蛋糕吃起来就会少了不少情趣,严...
    虎笨笨阅读 465评论 0 1

友情链接更多精彩内容