摘要: 通过这个设置。应用中的所有UILable的字体都会是绿色,除非在其他地方设置。[[UILabel appearance] setTextColor:[UIColor greenColor]]; 阅读全文
posted @ 2015-05-15 16:13 huang303513 阅读(174) 评论(0) 推荐(0) 编辑
摘要: #import "NSData+MimeType.h"@implementation NSData (MimeType)-(NSString *)mimeType{ uint8_t c; [self getBytes:&c length:1]; NSString *mimeType=nil; ... 阅读全文
posted @ 2015-05-15 14:29 huang303513 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-05-15 14:21 huang303513 阅读(150) 评论(0) 推荐(0) 编辑
摘要: const表示不能修改 static表示作用域限定在本文件中// EOCAnimatedView.h#import @interface EOCAnimatedView : UIView- (void)animate;@end// EOCAnimatedView.m#import "EOCAnima... 阅读全文
posted @ 2015-05-09 11:53 huang303513 阅读(379) 评论(0) 推荐(0) 编辑
摘要: Generating Your Own ErrorsIn order to create your own NSError objects you’ll need to define your own error domain, which should be of the form:com.com... 阅读全文
posted @ 2015-05-06 17:24 huang303513 阅读(1346) 评论(0) 推荐(0) 编辑
摘要: Blocks make this much easier, however, because you can define the callback behavior at the time you initiate the task, like this:- (IBAction)fetchRemo... 阅读全文
posted @ 2015-05-06 16:11 huang303513 阅读(448) 评论(0) 推荐(0) 编辑
摘要: Represent nil with NSNullIt’s not possible to add nil to the collection classes described in this section because nil in Objective-C means “no object.... 阅读全文
posted @ 2015-05-06 13:21 huang303513 阅读(486) 评论(0) 推荐(0) 编辑
摘要: The NSNumber class is itself a subclass of the basic NSValue class, which provides an object wrapper around a single value or data item. In addition t... 阅读全文
posted @ 2015-05-05 17:39 huang303513 阅读(1174) 评论(0) 推荐(0) 编辑
摘要: http://www.justinyan.me/post/1624注:本文是对 Colin Wheeler 的Understanding the Objective-C Runtime的翻译。初学 Objective-C(以下简称ObjC) 的人很容易忽略一个 ObjC 特性 —— ObjC Run... 阅读全文
posted @ 2015-04-28 11:29 huang303513 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 主要对当前 GitHub 排名前 100 的项目做一个简单的简介, 方便初学者快速了解到当前 Objective-C 在 GitHub 的情况.若有任何疑问可通过微博@李锦发联系我项目名称项目信息1.AFNetworking作者是 NSHipster 的博主, iOS 开发界的大神级人物, 毕业于卡... 阅读全文
posted @ 2015-04-13 11:10 huang303513 阅读(159) 评论(0) 推荐(0) 编辑