11 2017 档案

摘要:app在模拟器是哪个启动成功会自动连接服务器,然后Xcode控制台报错, 模拟器 PAC Fetch failed with error [NSURLErrorDomain:-1001] 这类问题有好多类似的错误代码,看英文可以大概知道他的意思,-1001 代码是超时之类的错误。PAC 是 (代理自 阅读全文
posted @ 2017-11-29 18:12 wjwdive 阅读(888) 评论(0) 推荐(0) 编辑
摘要:1、- (NSArray *)visibleCells; UITableview 的方法,这个最直接,返回一个UITableviewcell的数组。 对于自定义的cell,之后的处理可能会稍微复杂。 2、-(NSArray*)indexPathsForVisibleRows; UITableview 阅读全文
posted @ 2017-11-09 16:29 wjwdive 阅读(6171) 评论(2) 推荐(0) 编辑
摘要:@interface - (BOOL)isDisplayedInScreen; @end @implementation UIView(UIScreenDisplaying) //判断View是否显示在屏幕上 -(BOOL)isDisplayedInScreen{ if(self == nil){ 阅读全文
posted @ 2017-11-09 15:59 wjwdive 阅读(9163) 评论(0) 推荐(0) 编辑
摘要:dispatch_apply的用法 并行模拟for循环,将指定的代码循环10次,一般会把这些代码附加到一个queue上,然后在 dispatch_apply里并行 dispatch_queue_t queue = dispatch_get_globel_queue(DISPATCH_QUEUE_PR 阅读全文
posted @ 2017-11-07 15:40 wjwdive 阅读(659) 评论(0) 推荐(0) 编辑