摘要:
//iOS7.1[[[[_searchBar.subviews objectAtIndex:0] subviews] objectAtIndex:0] removeFromSuperview];[_searchBar setBackgroundColor:[UIColor colorWithRed:... 阅读全文
摘要:
- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view. dispatch_queue_t queue = dispatch_get_global... 阅读全文
摘要:
NSDictionary *aDictionary = [[NSDictionary alloc]initWithObjectsAndKeys:@"tom",@"1",@"alex",@"2",@"josen",@"3", nil]; [aDictionary enumerateK... 阅读全文
摘要:
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayInSeconds * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ code to be executed after ... 阅读全文
摘要:
今天在Code4App上看了一个GCD倒计时的Demo,觉得不错代码贴出来备用-(void)startTime{ __block int timeout = 30; //倒计时时间 dispatch_queue_t queue = dispatch_get_global_queue(DI... 阅读全文
摘要:
UIButtonCreate.h#import @interface UIButtonCreate : UIButton/** * 创建UIButton * * @param frame frame * @param title title * @... 阅读全文
摘要:
UILabelCreate.h#import @interface UILabelCreate : UILabel/** * 创建UILabel 初始化不包含text * * @param frame frame * @param font font * ... 阅读全文
摘要:
运行命令sudo xcode-select --install就会显示一行文字,并且弹出一个对话框,确认安装后他就会自己下载来安装了。至此,Command Line Tools就能够重新复活了 阅读全文