- 博客(7)
- 资源 (12)
- 收藏
- 关注
原创 UI测试
UI测试 (1)行为 (2)外观 二 UI的外观测试----截屏测试 (1)截屏测试:http://objccn.io/issue-15-7/ (2)测试异步的代码很困难。这是在 Cocoa 的测试中经常出现的问题。我有两个解决方案。你可以使用像 Specta 或者像 Kiwi 这样的测试框架,它提供了多次运行断言直到超时或者成功。这意味着你可以给它 0.5 秒的时间运行,同时测试可能被重
2016-04-27 15:50:45 311
原创 iOS label根据显示内容自适应大小
iOS label根据显示内容自适应大小原文 http://www.cnblogs.com/czq1989/p/5019720.html1 - (void)setupLabel { 2 //准备工作 3 UILabel *textLabel = [[UILabel alloc] init]; 4 textLabel.font = [UIFont system
2016-04-27 15:49:33 4095
原创 Trying to start MapKit location updates without prompting for location authorization. Must call -[CL
(2)对于Trying to start MapKit location updates without prompting for location authorization. Must call -[CLLocationManager requestWhenInUseAuthorization] or -[CLLocationManager requestAlwaysAuthorization
2016-04-27 15:48:57 1167
原创 数据解析出错
json解析出来之后一直报错-[NSNull rangeOfCharacterFromSet:]: unrecognized selector sent to instance 0xbb79a8这个报错的原因是这样的,你从解析的数据中取出的值是空得,不能直接赋值, 要调用这句话 if(![remark isEqual :[NSNull null]]) { textfield.t
2016-04-27 15:46:33 1763
原创 NSNotification
对象间信息传递的标准方式是消息,发送消息的对象要知道消息的接受者,是一对一发送的。在iOS系统下,通过广播机制来达到这个目的,对象向通知中心(NSNotificationCenter)投递一个通知,由通知中心将其收到的通知分发给“感兴趣”的接收者。通知中心的原理非常符合设计模式中的观察者(Observer)模式。 什么是Notification?这个要求其实也很容易实现. 每个运行中的applica
2016-04-27 15:44:58 307
转载 NSTimer
一、什么是NSTimer 官方给出解释是“A timer provides a way to perform a delayed action or a periodic action. The timer waits until a certain time interval has elapsed and then fires, sending a specified message to a
2016-04-27 15:44:12 233
转载 UITableview性能优化总结
转载请注明 编程小翁@博客园,邮件[email protected],欢迎各位与我在C/C++/Objective-C/机器视觉等领域展开交流! http://www.cnblogs.com/wengzilin/p/4288027.htmlUITableView作为ios中使用最频繁的控件之一,其性能优化也是常常要面对的,尤其是当数据量偏大并且设备性能不足时。本文旨在总结tableview的几个
2016-04-01 11:23:19 532
搜索某个目录下所有文件中的每一行是否包含某个字符串,适用于xcode工程中搜索使用某个api的搜有文件列表
2023-08-31
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人