摘要: [textField setValue:[UIColor redColor] forKeyPath:@"_placeholderLabel.textColor"]; [textField setValue:[UIFont boldSystemFontOfSize:16] forKeyPath:@"_ 阅读全文
posted @ 2015-12-11 12:13 deneyZhao 阅读(156) 评论(0) 推荐(0) 编辑
摘要: @synchronized 的作用是创建一个互斥锁,保证此时没有其它线程对self对象进行修改。这个是objective-c的一个锁定令牌,防止self对象在同一时间内被其它线程访问,起到线程的保护作用。 一般在公用变量的时候使用,如单例模式或者操作类的static变量中使用。有效避免了类成员变量的 阅读全文
posted @ 2015-12-07 16:06 deneyZhao 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 在viewDidLoad 里面 加上 if ([self.tableView respondsToSelector:@selector(setSeparatorInset:)]) { [self.tableView setSeparatorInset:UIEdgeInsetsZero]; } if 阅读全文
posted @ 2015-12-03 14:50 deneyZhao 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 真机调试是遇到的问题 : The executable was signed with invalid entitlements. The entitlements specified in your application’s Code Signing Entitlements file do n 阅读全文
posted @ 2015-12-03 14:46 deneyZhao 阅读(956) 评论(0) 推荐(0) 编辑
摘要: 集成支付宝sdk后openssl 里面头文件使用的为绝对路径,在编译时会报错 这个错误为路径不正确的报错,修改的话因为文件太多,比较麻烦。 解决这个问题可以再Building Settings 里面 搜索 header search Paths ,在这里面进行设置,把需要导入的头文件的文件夹路径添加 阅读全文
posted @ 2015-12-01 14:52 deneyZhao 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 在 info.plist文件中添加 App Transport Security Settings (Dictionary)。下面添加Allow Arbitrary Loads 为YES 阅读全文
posted @ 2015-11-30 14:49 deneyZhao 阅读(153) 评论(0) 推荐(0) 编辑
摘要: cd ~/Library/MobileDevice/Provisioning Profiles 阅读全文
posted @ 2015-11-30 14:15 deneyZhao 阅读(119) 评论(0) 推荐(0) 编辑