
做 iOS 開發,離不開開源社區的滋養。本文整理了三大類高頻使用的第三方資源:通用插件、完整源碼實例以及輔助工具,堪稱一份隨手可查的「工具箱清單」,建議收藏。
一、第三方插件
1:基於響應式編程思想的 oc 框架
https://github.com/ReactiveCocoa/ReactiveCocoa
2:HUD 提示框
https://github.com/jdg/MBProgressHUD
3:XML/HTML 解析
https://github.com/topfunky/hpple
4:根據鍵盤彈出狀態自動調整佈局位置
https://github.com/michaeltyson/TPKeyboardAvoiding
5:狀態欄提示框
https://github.com/jaydee3/JDStatusBarNotification
6:block 工具包,把大量需用 delegate 實現的方法整合成 block
https://github.com/zwaldowski/BlocksKit
7:圖片加載
https://github.com/rs/SDWebImage
8:正則表達式
https://github.com/wezm/RegexKitLite
9:Masonry 代碼佈局
https://github.com/SnapKit/Masonry
10:彈出窗
https://github.com/sberrevoets/SDCAlertView
11:Button 樣式
https://github.com/mattlawer/BButton
12:驗證網絡連接狀態
https://github.com/tonymillion/Reachability
13:自動計算表格行高
https://github.com/forkingdog/UITableView-FDTemplateLayoutCell
14:動畫效果的啟動頁
https://github.com/IFTTT/JazzHands
15:快速集成國內三大平台分享
https://github.com/xumeng/XMShareModule
16:五項能力值展示的五邊形
https://github.com/dsxNiubility/SXFiveScoreShow
17:可識別網址、號碼、郵箱和表情的 label
https://github.com/molon/MLEmojiLabel
18:IM 對話功能封裝
https://github.com/ZhipingYang/UUChatTableView
19:字典轉模型框架
https://github.com/CoderMJLee/MJExtension
20:下拉上拉刷新
https://github.com/CoderMJLee/MJRefresh
21:表格行左右滑動菜單
https://github.com/MortimerGoro/MGSwipeTableCell
22:圖文混排
https://github.com/zhouande/TLAttributedLabel
23:導航欄下方彈出菜單視圖,類似 Music app 播放列表
https://github.com/DrummerB/BFNavigationBarDrawer
24:圖片處理工具,支持篩選、模糊、蒙版、旋轉、縮放等,並提供異步加載的 UIImageView 子類
https://github.com/Nyx0uf/NYXImagesKit
25:底部 TabBar
https://github.com/robbdimitrov/RDVTabBarController
26:表情面板
https://github.com/ayushgoel/AGEmojiKeyboard
27:日誌記錄框架
https://github.com/CocoaLumberjack/CocoaLumberjack
28:iOS 與 JavaScript 交互
https://github.com/marcuswestin/WebViewJavascriptBridge
29:圖表統計展示
https://github.com/kevinzhow/PNChart
30:App Store 評分
https://github.com/arashpayan/appirater
31:iOS-Categories 擴展類大全
https://github.com/shaojiankui/IOS-Categories
32:掃描二維碼,仿微信帶掃描條
https://github.com/JxbSir/JxbScanQR
33:動效彈出視圖 AMPopTip,可自定義方向與顯示時間
https://github.com/andreamazz/AMPopTip
34:基於 Masonry 的自動行高擴展
https://github.com/632840804/HYBMasonryAutoCellHeight
35:模仿新浪微博的彈出菜單
https://github.com/wwdc14/HyPopMenuView
36:搜索歷史標籤
https://github.com/zhiwupei/SearchHistory
37:快速集成新手引導的類庫
https://github.com/StrongX/XSportLight
38:設置頁面的封裝
https://github.com/renzifeng/ZFSetting
39:帶箭頭的彈出視圖插件
https://github.com/xiekw2010/DXPopover
40:下拉菜單插件
https://github.com/dopcn/DOPDropDownMenu/
41:表格空白提示插件
https://github.com/dzenbot/DZNEmptyDataSet
42:為任意 UIView 四邊加陰影,可自定義顏色、粗細、透明度與位置
https://github.com/Seitk/UIView-Shadow-Maker
43:好用的日期時間插件
https://github.com/CoderXL/UUDatePicker
44:底部彈出選擇
https://github.com/skywinder/ActionSheetPicker-3.0
45:不錯的引導頁面插件
https://github.com/ealeksandrov/EAIntroView
46:兩個 App 之間跳轉的插件
https://github.com/usebutton/DeepLinkKit
47:本地存取 NSUserDefaults 插件
https://github.com/gangverk/GVUserDefaults
48:對 NSArray 和 NSDictionary 進行 LINQ 式操作,封裝常用方法
https://github.com/ColinEberhardt/LinqToObjectiveC
49:可監控網絡請求內容
https://github.com/coderyi/NetworkEye
50:時間幫助插件,快速獲取、比較、增減時間
https://github.com/MatthewYork/DateTools
51:不錯的鏈式動畫
https://github.com/jhurray/JHChainableAnimations
52:彈出層視圖,背景效果可自定義
https://github.com/HJaycee/JCAlertView
53:圓形進度條,中間可顯示數值
https://github.com/mdinacci/MDRadialProgress
54:很帥的數據加載動畫
https://github.com/NghiaTranUIT/FeSpinner
55:開源的 AFNetworking 上層封裝(猿題庫等在用)
https://github.com/yuantiku/YTKNetwork
56:CBStoreHouseRefreshControl,酷炫的下拉刷新控件
https://github.com/coolbeet/CBStoreHouseRefreshControl
57:AFNetworking-RACExtensions,針對 ReactiveCocoa 的 AF 封裝
https://github.com/CodaFi/AFNetworking-RACExtensions
58:模糊(毛玻璃)效果
https://github.com/nicklockwood/FXBlurView
二、源代碼實例
1:Coding.net 客戶端
https://coding.net/u/coding/p/Coding-iOS/git
2:高仿美團 iOS 版
https://github.com/lookingstars/meituan
3:精仿網易新聞
https://github.com/dsxNiubility/SXNews
4:支付寶高仿版
https://github.com/gsdios/GSD_ZHIFUBAO
5:高仿百度傳課 iOS 版
https://github.com/lookingstars/chuanke
6:模仿一元雲購
https://github.com/JxbSir/YiYuanYunGou
7:WordPress 源代碼
https://github.com/wordpress-mobile/WordPress-iOS
8:v2ex 源代碼(若報 SVProgressHUD 錯,可從 Podfile 中移除該庫)
https://github.com/singro/v2ex
9:PHPHub 客戶端(iOS 8.0 以上)
https://github.com/Aufree/phphub-ios
10:快速搭建項目源代碼
https://github.com/wujunyang/MobileProject
三、輔助軟件
1:Xcode 文檔註解插件 VVDocumenter
https://github.com/onevcat/VVDocumenter-Xcode
2:將 JSON 格式化輸出為模型屬性
https://github.com/EnjoySR/ESJsonFormat-Xcode
3:圖片提示插件
https://github.com/ksuther/KSImageNamed-Xcode
4:圖片轉換插件
https://github.com/rickytan/RTImageAssets