![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
error
金玉游龙
IOS开发人员
展开
-
关于error:Cannot assign to 'self' outside of a method in the init family
关于error:Cannot assign to 'self' outside of a method in the init family 有时候我们重写父类的init方法时不注意将init后面的第一个字母写成了小写,在这个方法里面又调用父类的初始化方法(self = [super init];)时会报错,错误信息如下:error:Cannot assign to原创 2014-02-25 10:23:16 · 1301 阅读 · 0 评论 -
*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from o
* -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]’ 这个问题,一般是因为 nsarray或nsdictionary插入数据为空而造成的原创 2015-08-04 15:18:52 · 26756 阅读 · 0 评论 -
Unknown Class **** in Interface Builder file
I added a UIView xib file using the root class of MyView.I created it in the wrong place and so moved it in the project. Same project just a different folder/group.I then had a problem when ru原创 2015-08-24 11:29:20 · 1671 阅读 · 0 评论 -
duplicate symbols for architecture arm64
XCODE编译的时候报错:duplicate symbols for architecture arm641、首先排查是否有名字重复的文件;2、检查是否在#import头文件的时候,不小心把.h写成了.m。注:本文解决思路参考于StormerZ的博客原创 2015-03-16 11:18:29 · 14869 阅读 · 3 评论 -
SpringBoard 无法启动应用程序(错误:6)
重启模拟器,就好了。原因未明。原创 2014-06-19 15:44:44 · 1275 阅读 · 0 评论 -
CoreData debug
iOS/Xcode异常:reason = “The model used to open the store is incompatible with the one used to create the store”时间2012-09-28 19:45:56 EntLib.net 技术分享平台 原文 http://www.entlib.net/?p=2516在iOS转载 2014-06-16 18:09:56 · 809 阅读 · 0 评论 -
xcode一直显示waiting for XXX to launch,模拟器跑不起来,解决方法!
product-->scheme --> edit scheme --> launch --->选中automatically原创 2014-07-04 16:14:05 · 6171 阅读 · 0 评论 -
如何获取和判断json中的boolean 值
其实我是明确知道返回来的数据是 boolean 类型的,只是在做判断的时候 发现直接使用if([responseObjectobjectForKey:@“success”]) 判断没有任何意义,因为我判断的是这是不是为真,换句话说,就是是不是非空,靠当然非空啦,大不了返回一个false 但那个也是有值得,so ,我尝试使用改变数据类型接收,当我用NSString * 接收时原创 2014-07-04 14:28:35 · 12002 阅读 · 0 评论 -
expected expression __bridge
expected expression 一般为 标点符号引起的警告 () 或{} // 使用 core foundation 框架,ARC环境下需要:(__bridge NSString*)修饰或(__bridge id)修饰NSString * s = (id) (__bridgeNSString*)kSecAttrAccount; [wra原创 2014-06-13 15:27:15 · 4384 阅读 · 0 评论 -
ARC中__bridge, __bridge__transfer, __bridge_retained 关系
总结于 IOS Tuturial 中 ARC两章,详细在dropbox pdf 文档。Toll-Free Bridging当你在 Objective-C 和 Core Foundation 对象之间进行转换时,就需要使用 Bridge cast。今天的多数应用很少需要使用 Core Foundation,大多数工作都可以直接使 用 Objective-C 类来完成。转载 2014-06-13 11:58:54 · 688 阅读 · 0 评论 -
Unbalanced calls to begin/end appearance transitions for <IDOOrderHomeViewController: 0x8da2960>.
自定义TabBarController Push下一级Controller时 会报这样的错误:Unbalanced calls to begin/end appearance transitions for <UIVIewController>.网上的一些回答,都说是动画引起的,解决方法就是,加一个BOOL型的变量,检查是否在做动画。但是,这并没有解决我的问题!所以真正的答案是原创 2014-06-06 11:31:17 · 5886 阅读 · 2 评论 -
Xcode 5.1-PBXcp error修复-NO architectures to compile for (ONLY_ACTIVE_ARCH=YES,active arch=x86_64,
差不多算是Xcode比较常见的一个编译错误了,原因往往是添加或删除美术资源的时候出错。虽然是小问题,但出现的频率很高。解决方法(可以依次尝试,总有一种能最终解决问题):方法1.退出Xcode,然后从finder里面进入~/Library/Developer/Xcode/DerivedData 删掉里面所有的内容,然后重启Xcode试试看方法2.上面的原创 2014-04-11 13:28:48 · 2599 阅读 · 0 评论 -
Thead 1: breakpoint 1.4
[self.playerprepareToPlay]; // Preload audio to decrease lag预加载音频减少延迟原创 2014-04-04 11:09:26 · 2075 阅读 · 0 评论 -
Thread 1:breakpoint 1.3 error in AppDelegate.m file
运行程序时,发生了error错误,crash在了[self.window makeKeyAndVisible]; 报错-->// Thread 1: breakpoint 1.3原因和解决:Check your xib files for deleted outlets that are still linked:原创 2014-02-26 18:22:09 · 4445 阅读 · 0 评论 -
nib but the view outlet was not set.
2014-03-17 10:22:22.848 text_viewchange[879:f803] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIViewController _loadViewFromNibNamed:bundle:] loaded原创 2014-04-02 11:43:45 · 1880 阅读 · 0 评论 -
could not insert new outlet connection
Xcode界面编辑器 could not insert new outlet connection 1.在新建类的时候没有选择将这个类加入到对应的“Target”中。 2.重新将文件加入项目 操作步骤就是选中出问题的.m和.h文件,点删除键,然后选“Remove Reference”,这样就不会真正删除文件。接着选“File -> A原创 2014-02-25 17:10:19 · 919 阅读 · 0 评论 -
iOS自动布局解决警告Automatic Preferred Max Layout Width is not available on iOS versions prior to 8.0
部署环境为iOS7.0可能会遇到设置Label的 Preferred Width(自动换行最大宽度) explicit (明确的) 即可原文链接我的博客范子原创 2015-08-18 10:24:31 · 1391 阅读 · 0 评论