[Reprint]iphone Open source Framework and class

Source: Internet
Author: User

Original Address:iphone open source Framework and classes Sky Wind

Open source frameworks and classes to use:

1:sdwebimage,uiimageview+webcache loading a picture.

2:uiviewext is useful for locating coordinates, so you can get bottom,top,left,right directly.

3:customcatagory, is a category, which has Navigationbar and Uinavigationcontroller two system versions under the custom Navigationbar background image method, Used to customize the navigationbar background picture.

4:uiutils Tool class, Inside I wrote four methods, one to get documents under the file path, a nsdate type into a string type, a string into the nsdate type, and one will pass in a scoring string split into two, placed in the array, Used to display a score of two different font types.

5:consts constant class, which is stored in the entire project needs to use the constant, written as a macro form.

The 6:uifactory has custom button types and two common button styles.

7:jsonkit classes for JSON data parsing

The 8:asihttprequest Open Source Library, which is used to request the network, relies on these five systems to bring their own libraries cfnetwork, SystemConfiguration, Mobilecoreservices, and Libz, LIBXML2.

9:datasevrice network request class, split get and POST request two ways, use HTTP request network, use Asiformdatarequest class, need a URL parameter, when use GET request, do not need dictionary parameter, add a request header, When using a POST request, a dictionary parameter is required, and a value is sent by key. The Asiformdatarequest object uses block request data, judge version, more than 5.0 use the Jsonkit class under the nsjsonserialization,5.0 version of the JSON parsing class with iOS5, and after the request, use the block callback. If the request fails, the return request fails.

10: Converts the requested network data dictionary into a model object class. Facilitates data transfer between other classes.

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

12: Use OpenFlow Open source framework, used to display the first page of the picture to achieve the effect, in the Afitemview class set the high-definition and low-clear two styles, the implementation of three proxy methods, one for the picture change, a request to load the picture, through _ Operationqueue creates a thread to load, because if all the pictures are loaded on the main thread, it can cause the threads to clog.

13:egorefreshtableheaderview is used for pull-down refresh to implement several proxy methods inside, and when the finger is released, it calls the load data agent method.

Tip: The class. h files that are imported in mtime-prefix.pch can be used throughout the project.

In the Mtime-info.plist file you can change the Statebar style, there are three kinds.

In the localizations can be changed localization, you can set up a number of languages, in the hardware to do the corresponding settings.

Press and hold Option+command+run to add a variable to locate the error.

In the project, it is best to open the static Analyzer, you will be prompted there is a memory leak, of course, not accurate, be sure to remember to manage memory.

Encountered a bug or a direct crash, if the report is exc-bad-access then means that the object has been released before, and actually use it later, so you have to go up the inverse of the search. Several common methods of adjusting the bug, break point step by step search, printing, including data, reference counting, temporarily block part of the code, part of the search.

[Reprint]iphone Open source Framework and class

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.