使用dispatch_semaphore_t 實(shí)現(xiàn) dispatch_semaphore_t sema = dispatch_semaphore_create(0); //創(chuàng)...
![240](https://cdn2.jianshu.io/assets/default_avatar/4-3397163ecdb3855a0a4139c34a695885.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/240/h/240)
IP屬地:北京
使用dispatch_semaphore_t 實(shí)現(xiàn) dispatch_semaphore_t sema = dispatch_semaphore_create(0); //創(chuàng)...
//判斷是否為iPad #define ISIPAD [[[UIDevice currentDevice].model substringToIndex:4] isEqual...
IOSBlock之頁面之間的傳值問題 一.字典 數(shù)組和字符串的傳值 blcok的基本格式:返回值類型(^block變量名)(形參列表) = ^(形參列表) { }; 調(diào)用Bl...
一 視圖UIView和UIWindow iphone視圖的規(guī)則是:一個(gè)窗口,多個(gè)視圖萨脑。UIWindow相當(dāng)于電視機(jī)累驮,UIViews相當(dāng)于演員僧凰。 1.顯示數(shù)據(jù)的視圖 下面幾個(gè)類...