1.屏幕截圖 dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.1 * N...
1.在指定線程上執(zhí)行操作 [selfperformSelector:@selector(run)onThread:threadwithObjec...
每個iOS應(yīng)用程序都有個專門用來更新顯示UI界面、處理用戶的觸摸事件的主線程,因此不能將其他太耗時的操作放在主線程中執(zhí)行,不然會造成主線...
準(zhǔn)備工作 · 導(dǎo)入框架 WebKit.framework · 導(dǎo)入頭文件 <WebKit/WebKit.h> · 創(chuàng)建WKWebVie...
- (NSArray *)mas_makeConstraints:(void(^)(MASConstraintMaker *make))bloc...
- (void)viewDidLoad { [super viewDidLoad]; // Do any additional se...
//方式1 創(chuàng)建線程 NSThread *thread = [[NSThread alloc] initWithTarget:self sele...
//創(chuàng)建一個線程在子線程執(zhí)行,aSelector代表了新創(chuàng)建的線程,arg是傳入的參數(shù)[Object performSelectorInBack...
//---------------- 0.3 函數(shù) --------------- import UIKit 1.Swift 函數(shù)基本格式 fu...