10 essential objective-C class libraries for iOS efficient development

Source: Internet
Author: User
Tags website server

Mbprogresshud (Progress indicator Library)

Address:Https://github.com/jdg/MBProgressHUD

Apple applicationsProgramGenerally, an elegant and translucent progress display is used, but this API is not public. Therefore, if you use it, it is likely to be cleared out of the appstore. Mbprogresshud provides an alternative solution. From the user perspective, the implementation effect cannot be seen as different from the official program. Other additional functions are provided, such as virtual progress indicators and completion prompts. It is also easy to integrate into the project. I will not discuss it here.

Asihttprequest (HTTP Network Library)

Address:Http://allseeing-i.com/ASIHTTPRequest/

Of course, the iPhone also has its own HTTP Network API. Why should I use asihttprequest? Because the official API is just a bit cool! The asihttprequest Library greatly simplifies network communication, provides more advanced tools, File Upload tools, redirection processing tools, verification tools, and so on. As long as you have something to do with HTTP, using this will definitely make you feel a wonderful life! First look at a paragraphCodeI realized it.

 
 
  1. (Void) loadappdevmag
  2. {
  3. Nsurl *URL= [Nsurl urlwithstring: @ "http://www.appdevmag.com"];
  4. Asihttprequest *Request= [Asihttprequest requestwithurl: url];
  5. [Request setdelegate: Self];
  6. [Request startasynchronous];
  7. }
  8. -(Void) requestfinished :( asihttprequest *) Request
  9. {
  10. // Use when fetching text data
  11. Nsstring *Responsestring= [Request responsestring];
  12. }

JSON framework (JSON supported)

Address:Http://stig.github.com/json-framework/

If your application interacts with the website server, JSON is used. But in fact, the native class library of iOS platform does not support JSON at all, which is a little sharp? However, the JSON frame meets all your requirements, including a parser that parses JSON strings into objects, and a generator that generates strings from objects. This library is too popular. JSON has been mentioned many times, so I will not talk about it in terms of its specific characteristics. The so-called "a piece of code wins thousands of words" is a demonstration of it with a piece of code.

 
 
  1. // JSON string->Nsdictionary
  2. Nsstring *Jsonstring= @ "{\" Foo \ ": \" bar \"}";
  3. Nsdictionary *Dictionary= [Jsonstring jsonvalue];
  4. Nslog (@ "dictionary value for \" foo \ "is \" % @ \ "", [dictionary objectforkey: @ "foo"]);
  5. // Nsdictionary->JSON string
  6. Nsstring *Newjsonstring= [Dictionary jsonrepresentation];

Flurry (detailed usage statistics)

Address:Http://www.flurry.com/product/analytics/index.html

 

Furry allows you to obtain statistics about the number of users, user activity, and user sources of the application. But what's best about it is that you can track the events and error records of the application. All the data will be displayed on a Google Analytics-like interface, in this way, you can easily master user behaviors and problems. Of course, there are a lot of statistical tools on this planet, but this is a solution that I personally admire.

Regexkitlite (Regular Expression supported)

Address:Http://regexkit.sourceforge.net/RegexKitLite/

We all know the regular expression. But when the iPhone SDK does not exist? How can this be tolerated! Use regexkitlite. Although it is called lite, the function is full. Sample Code.

  
  
  1. // Finds phone number in format Nnn-NNNN
  2. Nsstring *RegEx= @ "[0-9] {3}-[0-9] {3}-[0-9] {4 }";
  3. For (nsstring * match in [textview. Text componentsmatchedbyregex: RegEx]) {
  4. Nslog (@ "phone number is % @", match );
  5. }

Facebook ios sdk (Facebook API Class Library)

Address:Https://github.com/facebook/facebook-ios-sdk

Facebook login on the iPhone, which fully supports the Facebook Graph API and the older rest API. If your application is related to Facebook, believe me, use this.

Sdwebimage (simplified network image processing)

Address:Https://github.com/rs/SDWebImage

Using sdwebimage to call images on a website is as simple as calling images built in the app package locally. The operation is also very simple.

 
  
  
  1. [Imageview setimagewithurl: [nsurl urlwithstring: @ "http://example.com/image.png"];

Similar functions are available in three20. In comparison, sdwebimage mainly provides a small, precise, simple and convenient solution.

Gdata client (class libraries for all Google-related services on the iPhone)

Address:Http://code.google.com/p/gdata-objectivec-client/

The name indicates everything. It is worth mentioning that this project is very open for Google. There are many sample programs for download.

Coreplot (2d graphics plotter)

Address:Http://code.google.com/p/core-plot/

Coreplot has many solutions to visualize your data ., At the same time, it will also provide a variety of fascinating graphic effects, such as Rod charts, pie charts, and line charts. on their websites, it also provides a large number of sample images, many stock price applications, game scores, personal Financial management is in use.

Three20 (General IOS Library)

Address:Https://github.com/facebook/three20

The three20 class library is made by Facebook itself, and is big and all his biggest characteristic. It may take a long time to integrate three20 into an existing project. However, if three20 is used at the beginning, especially when many web-related projects are involved, you will be able to deeply understand what a magic horse is.

Other Class Libraries

Whether it is an API for interacting with the Web, visual data, loading online images, or creating a social function application, the libraries listed here make development easier. If you are an iOS developer, you must check whether these libraries are used before starting your next project.

Source: 10 IOS libraries to make your life easier

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.