摘要: Error Domain=NSCocoaErrorDomain Code=3000 "未找到应用程序的“aps-environment”的权利字符串" UserInfo=0x1bad30 {NSLocalizedDescription=未找到应用程序的“aps-environment”的权利字符串}... 阅读全文
posted @ 2015-06-01 14:51 韩江河 阅读(419) 评论(0) 推荐(0) 编辑
摘要: 在默认显示的标题中直接修改文件的大小和颜色[self.navigationController.navigationBar setTitleTextAttributes:@{NSFontAttributeName:[UIFont systemFontOfSize:19],NSForegroundCo... 阅读全文
posted @ 2015-05-28 14:06 韩江河 阅读(457) 评论(0) 推荐(0) 编辑
摘要: NSDictionary初始化方法:[NSDictionary dictionaryWithObjectsAndKeys: ]--标准方法NSDictionary *dic = @{@"key":value}--当value值为空时会引发崩溃,进行非空判断 阅读全文
posted @ 2015-05-27 16:44 韩江河 阅读(4013) 评论(0) 推荐(0) 编辑
摘要: 导入环信的SDK后出现这样的waringld: warning: PIE disabled. Absolute addressing (perhaps -mdynamic-no-pic) not allowed in code signed PIE, but used in _ff_h264_dec... 阅读全文
posted @ 2015-05-26 21:00 韩江河 阅读(903) 评论(0) 推荐(0) 编辑
摘要: 一、设备旋转(上苹果商店有风险)*这种方法当在General中勾选了Device Orieation 的Protrait后再用下面代码不能设置屏幕旋转至横屏。if ([[UIDevice currentDevice] respondsToSelector:@selector(setOrientati... 阅读全文
posted @ 2015-05-23 14:20 韩江河 阅读(416) 评论(0) 推荐(0) 编辑
摘要: AppCan打包的报错信息中 关于缺少XMPP的依赖库libresolv.dylib。在打包静态库的时候不允许加入动态库,但是打包的错误提示信息 说缺少依赖库。Undefined symbols for architecture armv7:"_dns_parse_resource_record",... 阅读全文
posted @ 2015-05-22 11:07 韩江河 阅读(343) 评论(0) 推荐(0) 编辑
摘要: Undefined symbols for architecture armv7:"_dns_parse_resource_record", referenced from: -[XMPPSRVResolver processRecord:length:] in libuexEaseMob.a(XM... 阅读全文
posted @ 2015-05-19 11:12 韩江河 阅读(4041) 评论(0) 推荐(0) 编辑
摘要: export IPHONEOS_DEPLOYMENT_TARGET=6.0export PATH="/Applications/Xcode.app/Contents/Developer/..."/Applications/Xcode.app/Contents/Developer/Toolchains... 阅读全文
posted @ 2015-05-18 12:40 韩江河 阅读(1136) 评论(0) 推荐(0) 编辑
摘要: 证书问题Build Settings -> Code Signing -> Code Signing Identity -> Debug ->选择你的证书 阅读全文
posted @ 2015-05-18 12:36 韩江河 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 引用的问题。ARC要求完整的前向引用,也就是说在MRC时代可能只需要在.h中申明@class就可以,但是在ARC中如果调用某个子类中未覆盖的父类中的方法的话,必须对父类.h引用,否则无法编译。在一个类中使用MRC 其中引用使用@class另一个类继承此MRC类,但是使用的是ARC让他支持混编就可以了... 阅读全文
posted @ 2015-05-12 16:38 韩江河 阅读(349) 评论(0) 推荐(0) 编辑