05 2015 档案

摘要:设置 Project->Info->Configurations之后clear ,然后再编译 在Configurations里面吧Debug 和Release的Tests 的None改为pods就可以啦。。很简单 阅读全文
posted @ 2015-05-21 15:04 huang303513 阅读(220) 评论(0) 推荐(0)
摘要:通过这个设置。应用中的所有UILable的字体都会是绿色,除非在其他地方设置。[[UILabel appearance] setTextColor:[UIColor greenColor]]; 阅读全文
posted @ 2015-05-15 16:13 huang303513 阅读(180) 评论(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 阅读(300) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-05-15 14:21 huang303513 阅读(169) 评论(0) 推荐(0)
摘要:const表示不能修改 static表示作用域限定在本文件中// EOCAnimatedView.h#import @interface EOCAnimatedView : UIView- (void)animate;@end// EOCAnimatedView.m#import "EOCAnima... 阅读全文
posted @ 2015-05-09 11:53 huang303513 阅读(385) 评论(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 阅读(1381) 评论(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 阅读(453) 评论(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 阅读(497) 评论(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 阅读(1204) 评论(0) 推荐(0)