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代碼布局 (MyLinearLayout一個布局類庫)

地址: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:iOS快速簡單集成國內三大平台分享

地址: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:可以簡單展示在UINavigationBar下方,類似Music app的播放列表視圖,彈出菜單視圖

地址:https://github.com/DrummerB/BFNavigationBarDrawer

24:比如篩選、模糊、優化、蒙版、調整大小、旋轉以及保存等等。同時還提供了一個UIImageView子類從URL異步加載圖片,並在下載完畢時展示圖片。

地址: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:appStore評分

地址: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

 

二、基本流程使用的第三方庫


基本流程使用的第三方輪子






上述是有重復同一功能的,而如何選擇呢,這個我們可以根據項目的具體情況來確定。

二、列表相關的輪子


列表相關的輪子 




其他還有很多類似功能的,這是我個人從中選擇的幾個,后續添加中......

三、圖片相關的輪子


圖片相關的輪子





PS:簡友CoderKo1o加: PYPhotoBrowser (圖片瀏覽,功能完善中···)

此處Browser 和 Picker 功能是有些重復的,還是看項目需求來選擇吧。

四、其他可能用的輪子


4-1、偏工具類的輪子



4-2、不一定常用,但很有意思的一些動畫輪子

4-3、另外一些第三方庫
  • JSPatch:熱修復,為項目動態添加模塊,或替換項目原生代碼動態修復 bug
  • ReactiveCocoa: 函數響應式編程,使用 MVVM 搭
  • RxSwift:Swift 函數響應式編程框架。
  • BlocksKit: blocks 包,喜歡用 block的非常適合,學習 block 的好庫。
  • JKCategories:iOS 中常用到的 Category ,可以好好學習
  • YYKit:龐大、豐富的 iOS 組件,也是學習的好地方。
  • CocoaAsyncSocket:異步 socket 通訊類庫
  • GPUImage:圖片過濾
  • AsyncDisplayKit:將圖像解碼、布局以及渲染操作放在后台線程,帶來更好的用戶交互體驗的框架。
  • PromiseKit : 一個用來出來異步的編程框架(Swift)

暫時大部分記錄的還是 Objective-C 相關的, 說真的 github 上還有好多優秀的輪子等待我們挖掘,當然有好的輪子也希望可以多互相分享,此處持續添加中······。

話又說回來,我個人還是一向 遵循盡量用蘋果本身提供的 API 的原則,雖說與上面有矛盾。畢竟引入一個第三方庫有時還是有一些不確定的因素的,如果可能,盡量自己開發和實現相應的功能,第三方庫盡量只作為參考。 (當然一切以開發速度為第一的情況下,那就先用吧)

PS: 備注 下面鏈接中還有一些我們可能會用到的:
1、某公司用到的一些 iOS 開源庫和第三方組件
2、TimLiu-iOS, 超多都看不過來
3、整理常用的iOS第三方資源


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM