Common Lib recommended for IOS development

Source: Internet
Author: User


1. Mantle


Mantle allows us to simplify the model layer of COCOA and Cocoa Touch applications. To put it simply, a network request is often made in the program, and the request is generally a JSON string, and we typically build a model class to hold the data. This requires that we write a series of serialization code to convert the JSON to Model. This is time-consuming, error-prone, and not easy to modify. Mantle is a good solution to this problem and is easier to use.


    • Github:https://github.com/mantle/mantle

    • Reference:

      Tool article: Mantle
      SOURCE article: Mantle

    • Cocoapod integration: Pod ' mantle ', ' ~> 1.5.4 '


2. Masonry


In the IB era, if you're still using the code, the absolute layout is too low. With Apple released IPhone6, IPhone 6 Plus. IOS devices will have an increasingly rich screen size, and it's not possible to make a layout based on each size. Therefore, it is necessary to use AutoLayout. In storyboard, it can be very convenient to use AutoLayout, but in order to better co-development, some companies are still in the handwriting layout, frustrating is Apple provides the AutoLayout syntax is obscure, very impact on efficiency (you can dynamically see here AutoLayout's syntax). Masonry is designed to solve complex handwritten autolayout. How to use AutoLayout gracefully, and look at masonry.


    • Github:https://github.com/masonry/masonry

    • Reference: How to use, please see the README

    • Cocoapod integration: Pod ' masonry ', ' ~> 0.6.1 '


4. Blockskit


Blockskit is definitely the intimate companion of Objective-c, which provides a powerful Block syntax support for OC classes, making it comfortable, fast, and elegant to write OC code. Anyway I was absolutely inseparable from it.


    • Github:https://github.com/zwaldowski/blockskit

    • Reference: Block usage summary, using block in arc, how to prevent circular referencing (ZZ)

    • Cocoapod integration: Pod ' blockskit ', ' ~> 2.2.5 '


5. Kvocontroller


If you use KVO in your project, then Kvocontroller is definitely a good choice. It is a KVO enhanced framework for Facebook open source. There are several features:


  • Use Blocks, custom Actions, or nskeyvalueobserving callbacks for notifications.

  • No exception when Observer is removed

  • Implicit observer removal from controller Dealloc

  • Improve performance with nskeyvalueobservinginitial

  • Thread-safe and provides additional protection when the observer recovers

  • Is there any reason not to use Kvocontroller?

  • Github:https://github.com/facebook/kvocontroller

  • Reference: Kvocontroller:facebook Open source KVO (Key-value observing)










  • 7. Odrefreshcontrol

  • Many companies design their own pull-up refresh view, such as the NetEase news IOS client, drop down when there will be ads. If you just need a drop-down refresh, then consider the Odrefreshcontrol, which is the original iOS6 on the rubber candy refresh style, very interesting. Now there are a lot of big apps in use, such as shrimp music and QQ client.


      • Github:https://github.com/sephiroth87/odrefreshcontrol

      • Reference

      • Cocoapod:pod ' Odrefreshcontrol ', ' ~> 1.1.0 '


    8. Pop


    Facebook is also open source. The famous pop, do animation is the perfect choice. Accept it.


      • Github:https://github.com/facebook/pop

      • Reference: Facebook Pop usage Guide popping (use instance of Pop)

      • Cocoapod:pod ' Pop ', ' ~> 1.0.7 '


    Cocoapod:pod ' Kvocontroller ', ' ~> 1.0.3 '


Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Common Lib recommended for IOS development

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.