ios essential third-party library

introduction

As an iOS developer, how can you not use third-party libraries in the process of developing App? I believe that no App does not use third-party libraries! Which third-party libraries do you believe you have used in the apps you have made?
Network library

Speaking of network libraries, this is a must for development, unless your App is playing stand-alone. AFNetworking is the most popular and easy-to-use network library. There are also some comrades who like to use the native NSURLConnection to do it. Of course, it is possible, but it is difficult to write and maintain.

I AFNetworking encapsulates a network based on common API class, reading fierce point: open HYBNetworking AFN package based network
database

Not every App uses a database, but if you need to use a database, we still need to use a third party. Because the original CoreData is really not easy to use. When I first came into contact with it, FMDB was very popular. Of course, it is still used by many companies, including our company.

Here is a CSDN article that says it well: http://blog.csdn.net/xyz_lmn/article/details/9312837
Model and dictionary conversion/automatic archiving

Since I developed the company’s App, I have been looking for a third-party library that converts between JSON and Model, because every time the network retrieves the data, it is really troublesome and tiring to parse it out one by one. The library I highly recommend here is MJExtension.

This library is simple and easy to use. Just look at the documentation and you can understand how to use it: https://github.com/CoderMJLee/MJExtension

Of course, a YYModel was released later, and the author researched it. It is actually similar to MJExtension, except that most of YYModel uses the lowest-level runtime API, while MJExtension is more OC syntax. In terms of performance, it is said that YYModel is higher than MJExtension. Of course, it should be higher in principle.

Want to try YYModel? Try it: YYModel
image download

Many companies now use SDWebImage in apps developed by companies, but I personally feel that it is sufficient to use the AFNetworking network library, which already provides image downloading and efficient caching. If you like to use SDWebImage, you can check the source code and documentation:

Famous SDWebImage

In fact, I now directly use AFNetworking's image downloading and caching functions, without adding a third-party library.
Prompt HUD

Speaking of this reminder HUD, many people like MBProgressHUD very much, its download link: MBProggressHUD

However, I don't like it very much because it is very troublesome to use. What I recommend is SVProgressHUD, which survives as a singleton and can be called directly at any time, and the apis we need to call are all class methods, which can be called directly. The download address is: SVProgressHUD
automatic layout

For those who use xib/storybard for development, skip it. The automatic layout of pure code is introduced here. The automatic layout of native code is quite difficult, cumbersome to write and difficult to remember. Therefore, we need a third-party library to encapsulate the native constraint api into a simple and easy-to-use interface for us to use.

Here I highly recommend Masonry, its download address is: The famous automatic layout Masonry

Expanded automatic calculation of row height: open source HYBMasonryAutoCellHeight

If it is swift development, SnapKit is recommended. In addition, the author expands an automatic row height calculation based on SnapKit: HYBSnapkitAutoCellHeight open source automatic row height calculation Swift version

Can't use Masonry? Look at the 14 tutorials it: Masonry pure code automatic layout combat
sliding menu

For apps that use sideslip style, you can use the MMDrawerController library, which can be implemented in a few lines of code. The download address is: https://github.com/mutualmobile/MMDrawerController
CoverFlow effect

I think the most famous third-party library for CoverFlow effects is iCarousel. Its download address: https://github.com/nicklockwood/iCarousel
log

How can there be no logs when developing apps? No log, how can I check the log? Now special fire logging library is CocoaLumberjack, download address: https://github.com/CocoaLumberjack/CocoaLumberjack
Refresh

So far, many companies’ apps have adopted MJRefresh, a library that quickly integrates pull-down refresh and pull-up to load more functions. This library also supports custom styles, so you can customize styles according to your needs. Its download address: https://github.com/CoderMJLee/MJRefresh
blur effect

After iOS7, there is UIVisualEffect which supports blur effect. If you want to support iOS5.0 and above, you need a third-party library to support it. It supports static and dynamic blur effects, and FXBlurView, which inherits the blur effects of UIView, can meet our needs. Its download address: https://github.com/nicklockwood/FXBlurView
rich text

The text view open source component is an alternative to UILabel, which can display the rendered attribute string in a simple way. In addition, it also supports links, whether manually or using UIDataDetectorTypes to automatically turn phone numbers, events, addresses, and other information into links. Its download address: https://github.com/mattt/TTTAttributedLabel
TabBarController

RDVTabBarController can easily set the text and picture of the bottom menu, click effects, small red dot prompts, etc., but there is no native UITabBar transition effect, so I don't like it very much. Its download address: https://github.com/robbdimitrov/RDVTabBarController
benefits

Recently I saw an article that collected a very complete third-party library, and the recommendations above are all for my own use. Click here to see more third-party libraries: http://www.52codes.net/article/465.html
attention label Columbia
Contact Follow Remarks
Contact group 347,363,861 pick projects, private living
iOS live audio and video technology 256 239 496
standard exchange iOS Gebo off group 552 095 943 (new)
standard Gebo off iOS exchange group 324,400,294 (full) | 494669518 (full) | 494669518 (full) | 250351140 (full)
micro-channel public number iOSDevShares or iOS develop technology to share
Sina microblogging @ standard brother's technology blog concern micro Blog dynamics

Guess you like

Origin blog.csdn.net/woruosuifenglang/article/details/54926457