会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
BarnettWu
博客园
首页
新随笔
联系
订阅
管理
2016年7月5日
tableview cell 的重复添加
摘要: 当有两种cell的时候,发生了如下神奇事件: 原因: 调用了 dequeueReusableCellWithIdentifier: forIndexPath: 在重用机制里,这个方法会重复调用两次 导致重用出现错乱,在只有一种cell的时候,察觉不到这样的情况, 但是一旦有多种cell,一定导致重用
阅读全文
posted @ 2016-07-05 19:33 BarnettWu
阅读(399)
评论(0)
推荐(0)
2016年7月4日
NavigationController隐藏时,statusBar依旧显示
摘要: 情况如图: 首先把controller设置为UIViewController,而不是tableviewController 然后又两种方法, 1. 添加到View,同时设置contentInset 2. 不用设置contentInset,添加到更加底层的navigationController.vi
阅读全文
posted @ 2016-07-04 19:37 BarnettWu
阅读(161)
评论(0)
推荐(0)
2016年4月22日
关于推送消息的处理
摘要: 在接收远程通知的时候 在程序关闭状态下 iOS 程序启动时总会调用application:didFinishLaunchingWithOptions:,其中第二个参数launchOptions为NSDictionary类型的对象,里面存储有此程序启动的原因。 ①.当程序处于关闭状态收到推送消息时,点
阅读全文
posted @ 2016-04-22 13:56 BarnettWu
阅读(890)
评论(0)
推荐(0)
2016年4月13日
ShareSDK分享语言问题
摘要: ShareSDK分享只有英文 解决方案 修改语言文件
阅读全文
posted @ 2016-04-13 10:17 BarnettWu
阅读(203)
评论(0)
推荐(0)
2016年3月27日
环信EMSDK_3.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
阅读(202)
评论(0)
推荐(0)
2016年2月26日
TableView Section Header 滑动粘性问题
摘要: 在网上找到的方法 // 去掉UItableview headerview黏性(sticky) - (void)scrollViewDidScroll:(UIScrollView *)scrollView { CGFloat sectionHeaderHeight = 40; if (scrollVi
阅读全文
posted @ 2016-02-26 21:56 BarnettWu
阅读(359)
评论(0)
推荐(0)
公告