随笔分类 -  IOS

摘要:ReactiveCocoais a framework that allows you to useFunctional Reactive Programming(FRP) techniques within your iOS applications. With thefirst installm... 阅读全文
posted @ 2015-12-21 20:42 Kimi_Lee 阅读(218) 评论(0) 推荐(0)
摘要:As an iOS developer, nearly every line of code you write is in reaction to someevent; a button tap, a received network message, a property change (via... 阅读全文
posted @ 2015-12-21 20:34 Kimi_Lee 阅读(134) 评论(0) 推荐(0)
摘要:之前一直都是使用第三方的类别实现ImageView从指定URL加载图片的功能,今天偶然发现另外一个方法。NSString *url = @"*****";UIImage *image = [UIImage imageWithData:[NSData dataWithContentsOfURL:[NS... 阅读全文
posted @ 2015-10-14 13:57 Kimi_Lee 阅读(453) 评论(0) 推荐(0)
摘要:最近发现执行startUpdatingLocation之后locationManager的代理方法都没有被调用,搜索了一下,得到以下信息:1、在使用CoreLocation前需要调用如下函数【iOS 8及更高】: iOS 8对定位进行了一些修改,其中包括定位授权的方法,CLLocationMana... 阅读全文
posted @ 2015-10-14 13:36 Kimi_Lee 阅读(141) 评论(0) 推荐(0)
摘要:JSON返回字符串数据,会有数据为“”的情况出现。这时候如果判断长度或者赋值给其它的对象的话就出崩溃,console会出现“class-nameNSNull ****”的字样。因此,在获得数据进一步使用前要先判断是否为NSNull.苹果官方文档是这样描述的:https://developer.app... 阅读全文
posted @ 2015-10-14 13:11 Kimi_Lee 阅读(1539) 评论(0) 推荐(0)