摘要: 当有两种cell的时候,发生了如下神奇事件: 原因: 调用了 dequeueReusableCellWithIdentifier: forIndexPath: 在重用机制里,这个方法会重复调用两次 导致重用出现错乱,在只有一种cell的时候,察觉不到这样的情况, 但是一旦有多种cell,一定导致重用 阅读全文
posted @ 2016-07-05 19:33 BarnettWu 阅读(390) 评论(0) 推荐(0) 编辑
摘要: 情况如图: 首先把controller设置为UIViewController,而不是tableviewController 然后又两种方法, 1. 添加到View,同时设置contentInset 2. 不用设置contentInset,添加到更加底层的navigationController.vi 阅读全文
posted @ 2016-07-04 19:37 BarnettWu 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 在接收远程通知的时候 在程序关闭状态下 iOS 程序启动时总会调用application:didFinishLaunchingWithOptions:,其中第二个参数launchOptions为NSDictionary类型的对象,里面存储有此程序启动的原因。 ①.当程序处于关闭状态收到推送消息时,点 阅读全文
posted @ 2016-04-22 13:56 BarnettWu 阅读(883) 评论(0) 推荐(0) 编辑
摘要: ShareSDK分享只有英文 解决方案 修改语言文件 阅读全文
posted @ 2016-04-13 10:17 BarnettWu 阅读(199) 评论(0) 推荐(0) 编辑
摘要: Undefined symbols for architecture x86_64: "_iconv", referenced from: _avcodec_decode_subtitle2 in libHyphenateFullSDK.a(utils.o) "_iconv_close", refe 阅读全文
posted @ 2016-03-27 00:06 BarnettWu 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 在网上找到的方法 // 去掉UItableview headerview黏性(sticky) - (void)scrollViewDidScroll:(UIScrollView *)scrollView { CGFloat sectionHeaderHeight = 40; if (scrollVi 阅读全文
posted @ 2016-02-26 21:56 BarnettWu 阅读(346) 评论(0) 推荐(0) 编辑