摘要: 做了个类似于点赞的逻辑 又一次让自己钻进了死胡同 钻进死胡同不要紧 关键是自己能敢于打破这个死胡同 跳出来才是最重要的 刚开始自己想的是这样的: 就拿点赞说吧 因为单元格要重用 所以为了不出现重用单元格之后 点过赞的还是显示没赞 刚开始自己的想法是点过赞之后刷新数据源 那么刷新数据源就应该请求数据( 阅读全文
posted @ 2016-08-29 10:40 iWillW 阅读(144) 评论(0) 推荐(0)
摘要: //scrollview引起侧边缘滑动手势失效的解决办法 //小知识 大发现 关于 UDID和UUID这两个东西 UDID的全名为 Unique Device Identifier :设备唯一标识符。 从名称上也可以看出,UDID这个东西是和设备有关的,而且是只和设备有关的,有点类似于MAC地址。 阅读全文
posted @ 2016-08-29 09:52 iWillW 阅读(149) 评论(0) 推荐(0)
摘要: http://blog.csdn.net/lwjok2007/article/details/50756273 阅读全文
posted @ 2016-08-16 13:28 iWillW 阅读(158) 评论(0) 推荐(0)
摘要: Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Storyboard (<UIStoryboard: 0x7ff5c9fa52b0>)doesn't contain a view con 阅读全文
posted @ 2016-08-16 10:09 iWillW 阅读(146) 评论(0) 推荐(0)
摘要: - (NSString *)timeWithTimeIntervalString:(NSString *)timeString { // 格式化时间 NSDateFormatter* formatter = [[NSDateFormatter alloc] init]; formatter.timeZone = [NSTimeZone timeZoneWithName:@... 阅读全文
posted @ 2016-08-11 22:37 iWillW 阅读(240) 评论(0) 推荐(0)
摘要: <key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> </dict> 阅读全文
posted @ 2016-08-10 23:24 iWillW 阅读(186) 评论(0) 推荐(0)
摘要: 要记得设置区头的高度 否则会出现第一行没区头问题 阅读全文
posted @ 2016-08-09 17:01 iWillW 阅读(133) 评论(0) 推荐(0)
摘要: 其实可以直接到https://github.com/CocoaPods/Specs上把所需的文件夹下载下来 解压后命名为master放在本地的 ~/.cocoapods/repos 下面就行 但是使用的时候用到一个问题: [!] Unable to find a pod with name, aut 阅读全文
posted @ 2016-08-09 11:25 iWillW 阅读(143) 评论(0) 推荐(0)
摘要: 刚学xib就遇到一个问题 最后还是朋友帮忙解决了 就是在设置约束时,设置的是左右约束为0,可是最后弄出来却是左右边界都空出来了16 解决办法: 具体原因应该是iOS8 之后UIView又多了个属性:layoutMargins @property (nonatomic) UIEdgeInsets la 阅读全文
posted @ 2016-08-08 14:43 iWillW 阅读(111) 评论(0) 推荐(0)
摘要: vvdocument是瞄神写的一个插件 作用的话大家都知道 这里就不多说了 插件下载地址:https://github.com/onevcat/VVDocumenter-Xcode 1.下载后解压 编译(command + b)就行 然后退出(command+q)启动你的项目就可以了(没错就是这么简 阅读全文
posted @ 2016-03-06 18:00 iWillW 阅读(1298) 评论(0) 推荐(0)