iOS developing third-party libraries

Source: Internet
Author: User

iOS Development Essentials Third-party library introduction

As an iOS developer, how do you not use third-party libraries to develop your app? Believe that no app is using third-party libraries! What third-party libraries do you believe you've used in the apps you've done?

Network Library

When it comes to web libraries, this is a prerequisite for development, unless your app plays a single machine. Now special fire is also particularly useful network library on the number of afnetworking. Also some comrades like to use their native nsurlconnection to do, of course, it is possible, but to write it is also difficult to maintain more difficult.

The author based on Afnetworking encapsulated a network commonly used API class, read: Open source hybnetworking based on AFN package network

Database

Not every app is used by the database, but if you need to use a database, we still need to use a third party. Because the original CoreData really does not use. At the moment of contact, Fmdb is a special fire, of course, there are still many companies in use, including our company.

Here's a csdn article that says well:http://blog.csdn.net/xyz_lmn/article/details/9312837

Model and dictionary cross-transfer/automatic archiving

Since I developed the company's app, has been looking for JSON and model of the third-party library, because each time the network to retrieve data and then parse out one after another is really very troublesome and tired. The library that is naturally recommended here is mjextension.

This library is easy to use, just take a look at the document and see how it's used:https://github.com/CoderMJLee/MJExtension

Of course, later out a Yymodel, the author studied, in fact, and mjextension almost, just yymodel most of the use of the runtime's most basic API, and mjextension more is the OC syntax. In performance, it is said that Yymodel is higher than mjextension, of course, from the principle of analysis should be higher.

Want to try Yymodel? Try it:Yymodel

Image download

Sdwebimage is now used in many companies ' apps, but individuals feel they can use the Afnetworking network library, which has already provided the ability to download images and cache them efficiently. If you prefer to use sdwebimage, check out the source code and use the documentation:

Famous Sdwebimage

In fact, I now directly use the afnetworking image download and caching function, no need to add a third-party library.

Hint HUD

Speaking of this tip HUD, many people are very fond of Mbprogresshud, whose:mbproggresshud

However, I do not like it very much, because it is very troublesome to use. I am more recommended is the Svprogresshud, in a singleton form of survival, any time directly call, and we need to invoke the API is a class method, directly called. It is:svprogresshud

Automatic layout

For development is the use of Xib/storybard students can skip. Here is the automatic layout of pure code, native code automatic layout is quite difficult, it is difficult to write and it is hard to remember. Therefore, we need a third party libraries to the native constraint API encapsulated into an easy-to-use interface for us.

Here I highly recommend masonry, which is: famous automatic layout masonry

Extended automatic calculation of row heights: Open Source Hybmasonryautocellheight

If it is swift development, recommend Snapkit, in addition, the author based on Snapkit extended an automatic calculation of row height:hybsnapkitautocellheight Open source automatic line high Swift version

Not using masonry? Look at the author's 14 tutorials:Masonry Pure Code Automatic layout combat

Slide Menu

For apps that use a skid-like style, a few lines of code can be implemented using the Mmdrawercontroller library. It is:https://github.com/mutualmobile/MMDrawerController

Coverflow effect

I think the most famous coverflow effect of the third-party library is Icarousel. It:Https://github.com/nicklockwood/iCarousel

Log

How can you develop apps without a log? How do I go to view records without a log? Now the special Fire Log Library is Cocoalumberjack, its:https://github.com/CocoaLumberjack/CocoaLumberjack

Refresh

So far, many of the company's apps have used Mjrefresh, a fast-integrated pull-down refresh and pull-up load more versatile library. The library also supports custom styles, so you can customize the style to suit your needs. It:Https://github.com/CoderMJLee/MJRefresh

Blur effect

IOS7 has uivisualeffect. This control supports blur effects. If you want to support iOS5.0 or above, then you need a third-party library to support it. Support static, dynamic blur effect, inherit and uiview of fuzzy special effects Fxblurview can meet our needs. It:https://github.com/nicklockwood/FXBlurView

Rich Text

The text view open source component, which is an alternative component of Uilabel, provides a simple way to represent the rendered property string. In addition, links are supported, whether manually or using Uidatadetectortypes, to automatically turn phone numbers, events, addresses, and other information into links. It:Https://github.com/mattt/TTTAttributedLabel

Tabbarcontroller

Rdvtabbarcontroller can easily set the bottom menu text picture, click Effect, small red dot hint and so on, but there is no original uitabbar transition effect, so the author is not very like. It:https://github.com/robbdimitrov/RDVTabBarController

Welfare

Recently saw this has an article collected a very full third-party library, the above recommendations are used by me. Click here to see more third-party libraries:http://www.52codes.net/article/465.html

iOS developing third-party libraries

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.