原创 IOS 自動排序
caseInsensitiveCompare
原创 NSArray 介紹
NSArray *array = [NSArray arrayWithObjects:@"1",@"2",@"3",nil]; [array enumerateObjectsUsingBlock:^(id obj, NSUIntege
原创 IOS 動畫類型及實現方法
核心動畫(Core Animation)是IOS動畫核心技術的基礎;基本動畫:CABasicAnimation關鍵幀動畫:UAKeyframeAnimation視圖動畫隱式動畫是以事務(CATransaction)的方式操作。每個動畫請求在
原创 oc常用的數據類型格式化操作
整型 int %d.%i短整型 short int %hd.%hi長類型 long int %ld.%li無符號
原创 IOS 線程與進程的區別
線程是進程中某一個單一順序的控制流,也被成爲輕量級進程(lightweight processes)是CPU調度和分派的基本單元;進程是操作系統結構的基礎,是一個正在執行的程序,計算機中正在運行的程序實例,可以分配給處理器並由處理器執行的一
原创 IOS 方向開發
UIDeviceOrientation orientation; orientation = [[UIDevice currentDevice] orientation]; switch (orientation) {
原创 IOS UIButton 常用方法介紹
// 創建按鈕 UIButton* button = [UIButton buttonWithType:UIButtonTypeRoundedRect]; // 設置按鈕標題 [button setTitle:@"觸摸我!" forS
原创 IOS 消息推送機制
IOS消息推送分爲:本地通知,推送通知,本地通知:主要是UILocalNotification的一個實例;