1. 程式人生 > >今日筆記 待整理

今日筆記 待整理

refresh 樹形 spl uinib nor nag aid ble .cn

1. http://www.cocoachina.com/bbs/read.php?tid-104636-fpage-3.html 檢測當前網絡的類型,3g,2g,wifi,以及速度測試 2. No architectures to compile for (ONLY_ACTIVE_ARCH=YES,active arch = x86_64,VALID_ARCHS=i386)出現該錯誤的解決方法: (1)http://www.cocoachina.com/bbs/read.php?tid-300693-fpage-2.html (2)http://www.th7.cn/Program/IOS/201412/328283.shtml 3. 設置圖片的拉伸方法: http://www.cocoachina.com/bbs/read.php?tid-300686-fpage-2.html設置圖片拉伸效果 4. 更改MJRefresh添加功能背景圖片 :https://github.com/shaw2014/ZSDRefreshView 5.註冊cell的方法: (1)系統自定義cell的註冊方法 :
[self.theTable registerClass:[UITableViewCell class] forCellReuseIdentifier:@"111"];使用:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"111" forIndexPath:indexPath]; return cell; } (2) 使用xib方式註冊cell的方法 註冊: [self.tableView registerNib:[UINib nibWithNibName:@"MusicListTableViewCell" bundle:nil] forCellReuseIdentifier:@"MusicListTableViewCell"]; 使用: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { MusicListTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"MusicListTableViewCell" forIndexPath:indexPath]; DetailSong *detail = self.detailArray[indexPath.row]; cell.singerName.text = detail.title; cell.songName.text = detail.author; return cell; 6. UITableView的復用機制 http://cache.baiducontent.com/c?m=9d78d513d98512ff06ba837f7d528c315c4381132ba7da020fd2843e92732a40506793ac57250775d5d27d1716d94f4b99862103351457c18f8fc814d2e1d46e6d9f26476d01d61f4f860eafbc1764977c875a9ef34ea1a7a33398a8d3d0d55350c94e563ac6abda0457099c38b6476abde7844d1f5b17baeb30&p=9e6c8d15d9c347ae02fbc7710f5c86&newp=cb7dda15d9c347ae01b4c7710f0d94231610db2151d6d14c26&user=baidu&fm=sc&query=tableView%B8%B4%D3%C3%B5%C4%D4%AD%C0%ED&qid=db48cb620000167e&p1=1 7. coredata 多表查詢 https://github.com/AugustRush/ARCoreData 8. 隨機數的獲取 (1)、獲取一個隨機整數範圍在:[0,100)包括0,不包括100
int x = arc4random() % 100; (2)、 獲取一個隨機數範圍在:[500,1000),包括500,不包括1000 int y = (arc4random() % 501) + 500; (3)、獲取一個隨機整數,範圍在[from,to),包括from,不包括to -(int)getRandomNumber:(int)from to:(int)to { return (int)(from + (arc4random() % (to – from + 1))); } 9.實現樹狀型目錄: http://code4app.com/ios/多級樹形目錄列表/4fbe7c066803fa8f4d000000 10. 左劃cell,出現兩個按鈕,一個彈出actionsheet列表,另一個是刪除按鈕 demo http://code4app.com/ios/DAContextMenuTableViewController/521c2d176803fa781a000000 11. 點擊cell 無限多層tableView,每個view上顯示連個tableView http://code4app.com/ios/InfiniteTreeView/537c6e11933bf0611f8b4c9a 12. 實現點擊cell展開新的cell,展開後空心原點變成實心的: http://code4app.com/ios/Nested-Table/50003e7c6803fa9203000000 12(2) cell展開 http://code4app.com/ios/5121cac66803fae949000002 (3) cell展開 http://code4app.com/ios/50651c8c6803fa8a01000002 (4) cell展開 http://code4app.com/ios/53845f8a933bf0740a8b458a 13. code4 給每一個cell的group添加邊框,,,http://code4app.com/ios/509fa8776803fa5254000000 14. 兩個scrollView和兩個tableView http://code4app.com/ios/Two-Tables-in-ScrollView/4fc87d1c6803fa9868000000 15. 橫豎表格制定,同時實現橫豎滑動時保證一側不變 http://code4app.com/ios/536af1fb933bf015218b4bc4 16. 簡單瀑布流 下拉加載 http://code4app.com/ios/518b6aeb6803fae058000000 (2) 圖文混編瀑布流 http://code4app.com/ios/5313dd30933bf0c50d8b55b7 (3)不同方式實現瀑布流效果 http://code4app.com/ios/4fdfecd96803fa117f000000 (4)瀑布流效果 http://code4app.com/ios/53f16731933bf0e54f8b5501 17. 簡單的閱讀器 http://code4app.com/ios/5082a4976803fafd0a000000 18. 給UILabel的文字加上各種各樣的藝術字體效果,包括陰影(內陰影和外陰影)、漸變色彩、彩虹、浮雕效果等等,而且使用十分簡單
,能夠完全代替UILabel。是一個功能十分強大又簡單易用的類庫 http://code4app.com/ios/4f901bee06f6e78f39000002 19 原狀圖,折現圖, 實現數據統計圖中的柱狀圖和曲線圖,可以同時顯示兩組數據用於比較 http://code4app.com/ios/52a92663cb7e8458178b6600 20。 item 2 好用的終端,常用的mac配置 http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece7631046893b4c4380146d96864968d4e414c422461f143dbfec7271565392d82f2747f41802bded602571507be9dad58940dcb8932f288333712d5cd04e4d8048b8cb377e8777cf4de8df19&p=cb73c32980934eaf59ef852d0214cd&newp=9b65890785cc43ff57ed957c1e5e9c231610db2151d7d2&user=baidu&fm=sc&query=mac+item2&qid=ae2ff0670003b931&p1=2 免費下載地址 : http://www.iterm2.com/ // 第二類 常用 mac軟件下載 21.插件管理,工具Alcatraz 軟件 Alcatraz 也可以在終端中執行代碼安裝 curl -fsSL https://raw.githubusercontent.com/supermarin/Alcatraz/master/Scripts/install.sh | sh (2) 安裝成功後在Xcode中 window --- PackageManager -- 下搜索cocopods ------ install ----OK 22. The Unarchiver mac下默認是不支持wind的壓縮文件 下載路徑 : http://wakaba.c3.cx/s/apps/unarchiver 23. 文件編輯器,, Sublime text 24 mac下最好用的視頻播放器 。。MPlayerX

今日筆記 待整理