05 2015 档案
摘要:设置 Project->Info->Configurations之后clear ,然后再编译 在Configurations里面吧Debug 和Release的Tests 的None改为pods就可以啦。。很简单
阅读全文
摘要:通过这个设置。应用中的所有UILable的字体都会是绿色,除非在其他地方设置。[[UILabel appearance] setTextColor:[UIColor greenColor]];
阅读全文
摘要:#import "NSData+MimeType.h"@implementation NSData (MimeType)-(NSString *)mimeType{ uint8_t c; [self getBytes:&c length:1]; NSString *mimeType=nil; ...
阅读全文
摘要:const表示不能修改 static表示作用域限定在本文件中// EOCAnimatedView.h#import @interface EOCAnimatedView : UIView- (void)animate;@end// EOCAnimatedView.m#import "EOCAnima...
阅读全文
摘要: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...
阅读全文
摘要:Blocks make this much easier, however, because you can define the callback behavior at the time you initiate the task, like this:- (IBAction)fetchRemo...
阅读全文
摘要: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....
阅读全文
摘要: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...
阅读全文

浙公网安备 33010602011771号