IOS development: open-source frameworks and Classes

Source: Internet
Author: User

IOS development: open-source frameworks and Classes

Open-source frameworks and classes used:

1: load an image using SDWebImage, UIImageView, and WebCache.

2: UIViewExt is useful for locating coordinates. You can directly obtain bottom, top, left, right.

3: CustomCatagory is a category. It contains two system versions: navigationBar and UINavigationController. It is used to customize the navigationBar background image.

4: UIUtils tool class. I have written four methods in it. One is to get the file path under documents, the other is to convert the NSDate type to the string type, and the other is to convert the string to the NSDate type, in addition, a score string is split into two parts and placed in an array to display the scores of two different Font types.

5: CONSTS constant class, which stores the constants that need to be used in the entire project and is written into the macro form.

6: The button type is customized in uifacloud. Two common button styles are used.

7. The JSONKit class is used for json data parsing.

8: The ASIHTTPRequest open-source library is used for request networks. It depends on the five built-in libraries CFNetwork, SystemConfiguration, MobileCoreServices, and libz and libxml2.

9: DataSevrice network request class, divided into GET and POST requests, using HTTP request network, using ASIFormDataRequest class, requires a url parameter, when using GET request, A dictionary parameter is not required. A request header is added. When a POST request is used, a dictionary parameter is required and a value is sent using the key. The ASIFormDataRequest object uses the block request data to determine the version. For Versions later than 5.0, The json parsing class NSJSONSerialization is used, for Versions later than 5.0, The JSONKit class is used, and block callback is used after the request. If the request fails, the request fails.

10: Convert the data into a model object class, and convert the requested network data dictionary into a model object. It facilitates data transmission between other classes.

11: A singleton class is customized to store the data that needs to be transferred between controllers in the project for convenient calling.

12: The OpenFlow open-source framework is used to display the pictures on the home page to achieve the effect. In the AFItemView class, the HD and Low-definition styles are set to implement three proxy methods, one is used to change during image switching, and the other is used to request image loading and create a thread through _ operationQueue for loading. If all images are loaded in the main thread, thread congestion may occur.

13: EGORefreshTableHeaderView is used to pull up and pull down and refresh to implement several proxy methods. When the finger is opened, it will call the method for loading the data proxy.

TIPS:

The class. h file imported in the Mtime-Prefix.pch can be used throughout the project.

You can change the stateBar style in the Mtime-Info.plist file in three ways.

In Localizations, you can change the localization mode, set multiple languages, and set the language in the hardware.

Press and hold option + command + run to add variables to locate errors.

In the project, it is best to open the static analyzer and prompt that there is a memory leak, of course, not accurate. Remember to manage the memory.

In case of a bug or direct crash, if exc-bad-access is reported, it means that the object has been released before, and it is actually used later, so we need to push it up for search. You can call several common methods to call bugs, and break the breakpoint to find and print them step by step, including data, reference counting, temporarily blocking part of the code, and searching part of the code.

Related Article

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.