摘要: 使用ARC( Automatic Reference Counting:自动引用计数 )来代替之前的MRC(Manual Reference Counting:人工引用计数)。混编问题:1.在ARC工程中使用MRC的类 在targets的build phases选项下Compile Sources... 阅读全文
posted @ 2015-05-12 16:35 韩江河 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 头文件问题:导入的SDK头文件都写在PCH里了、怎样在xcode6中创建pch文件,并配置路径,缓存等xcode5自动创建pch文件,xcode6中去掉了pch,可能是应为增加了build得时间据说,但是手动导入头文件,太麻烦虽然减少了build的时间。自己动手,丰衣足食。开始创建pch文件。1、创... 阅读全文
posted @ 2015-05-06 16:32 韩江河 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 1.Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:]原因:- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtInd... 阅读全文
posted @ 2015-05-04 11:00 韩江河 阅读(283) 评论(0) 推荐(1) 编辑
摘要: _OBJC_METACLASS_$_XXX重复的EMHostModel在程序中导入SDK后,按方法导入依赖库,运行后报错。原因:.a文件在SDK包中已加载到工程中,之后又再次在Build Phases中得linker中导入了一次,导致了重复。我将SDK中得.a文件Remove References之... 阅读全文
posted @ 2015-04-24 17:11 韩江河 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 在真机测试的时候往往会突然出现这样一个错误,code signing is required for product type 'Application' in SDK 'iOS 7.0' ,就是说代码签名证书不对劲。解决方案,1.选择工程->Build Settings -> Code Signi... 阅读全文
posted @ 2015-04-24 15:55 韩江河 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 1.轻击手势(TapGestureRecognizer)的添加初始化代码TapGestureRecongnizer的代码如下:1 //新建tap手势2 UITapGestureRecognizer *tapGesture = [[UITapGestureRecognizer alloc] initW... 阅读全文
posted @ 2015-04-15 10:53 韩江河 阅读(188) 评论(0) 推荐(0) 编辑
摘要: makeKeyAndVisible的作用 [self.window makeKeyAndVisible];由于iPhone是单窗口程序,所以也就只有这么一个Window对象,而且是UIWindow,不是NSWindow。而根据文档上所说:“这个是便捷方法,去使被使用对象的主窗口显示到屏幕的最前端。... 阅读全文
posted @ 2015-04-15 10:05 韩江河 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 在Xcode中当你在更新了你得证书而再重新编译你的程序,真机调试会出现“Your build settings specify a provisioning profile with the UUID‘XXX’, however, no such provisioning profile w... 阅读全文
posted @ 2015-04-15 10:04 韩江河 阅读(110) 评论(0) 推荐(0) 编辑
摘要: xib连线问题Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[setValue:forUndefinedKey:]: this class is not key value coding-com... 阅读全文
posted @ 2015-04-15 09:34 韩江河 阅读(231) 评论(0) 推荐(0) 编辑
摘要: iOS 调用系统发短信以及打电话功能ios电话smsinterface互联网class先介绍一种最简单的方法:调用打电话功能[[UIApplicationsharedApplication] openURL:[NSURL URLWithString:@“tel://10086”]];调用发短信功能[... 阅读全文
posted @ 2015-04-15 09:32 韩江河 阅读(212) 评论(0) 推荐(0) 编辑