随笔分类 - iOS 特性
摘要:参考文章:iOS多线程编程之NSThread的使用http://blog.csdn.net/totogo2010/article/details/8010231iOS多线程编程之NSOperation和NSOperationQueue的使用http://blog.csdn.net/totogo201...
阅读全文
摘要:摘自:《Effcitive Objective-C 2.0 编写高质量iOS与OS X代码的52个有效方法》第6条:理解“属性”这一概念// 属性@property (nonatomic, strong, readwrite) NSNumber *cumulativeInterest;等价于// 合...
阅读全文
摘要:摘自:《Effcitive Objective-C 2.0 编写高质量iOS与OS X代码的52个有效方法》第37条:理解“块”这一概念Block (块)块类型的语法结构如下:return_type (^block_name) (parameters)________________________...
阅读全文
摘要:NSURLNSURLRequestNSURLSessionNSURLSessionTaskNSURLSessionDataTaskNSURLSessionUploadTaskNSURLSessionDownloadTask
阅读全文
摘要:+ (UIColor *)colorWithWhite:(CGFloat)white alpha:(CGFloat)alpha;white (灰度)The grayscale value of the color object, specified as a value from 0.0 to 1....
阅读全文
摘要:lazy instantiator (懒加载、延迟实例化、延迟初始化)最开始看斯坦福的视频,对 延迟初始化 这个概念,不太理解只见到,有些属性的初始化是在init做的,有些是在viewDidLoad做的,有些是在属性的getter方法里面做的所谓的 延迟初始化,就是在getter方法里面做,需要此属...
阅读全文
摘要:要让 UITableViewController 实现 UITableViewDataSource 协议,需要实现以下方法:1. - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView;指定section数所谓的sectio...
阅读全文
摘要:将 NSString 转成 NSDateNSString *timeString = @“2015-03-02 19:33:52:235”;NSDateFormatter *formatter = [[NSDateFormatter alloc] init];[formatter setDateFo...
阅读全文
摘要:获取子字符串的位置- (NSRange)rangeOfString:(NSString *)aString;根据位置获取子字符串- (NSString *)substringWithRange:(NSRange)range;示例:// NSRange 用法NSString *fatherStr = ...
阅读全文

浙公网安备 33010602011771号