Because the iOS SDK is relatively low-level, developers have to work on more physical work. Fortunately, there are a lot of third-party libraries that can be used to simplify a lot of unnecessary work. After careful discussion by the authors ' team, they selected 10 libraries that can greatly improve the efficiency of iOS development, according to the author's evaluation, basically with these 10 tools, iOS development is really the same as bubble cocoa.
Mbprogresshud (Progress indication repertoires)
Address:Https://github.com/jdg/MBProgressHUD
Apple's app generally uses an elegant, translucent progress display, but this API is not public, so if you use it, you're likely to be cleared out of AppStore. And Mbprogresshud provides an alternative, and at the user's point of view, the effect of the implementation does not see any difference from the official program. Additional features such as virtual progress indicators and completion prompts are also available. Integration into the project is also very easy, here is not a detail.
ASIHTTPRequest (HTTP network Library)
Address:http://allseeing-i.com/ASIHTTPRequest/
The iphone certainly has its own HTTP Network API, so why use ASIHTTPRequest? Because the official API is just like words, too wordy! The ASIHTTPRequest library greatly simplifies network communications, provides more advanced tools, what file upload tools, redirect processing tools, validation tools, and more. As long as you have something to do with the HTTP, with this can definitely make you feel life is beautiful! Read a piece of code first to realize it.
- (void) Loadappdevmag
- {
- Nsurl *url = [Nsurl urlwithstring:@ "http://www.appdevmag.com"];
- ASIHTTPRequest *request = [ASIHTTPRequest Requestwithurl:url];
- [Request Setdelegate:self];
- [Request startasynchronous];
- }
- -(void) requestfinished: (ASIHTTPRequest *) request
- {
- Use when fetching text data
- NSString *responsestring = [request responsestring];
- }
JSON Framework (JSON support)
Address:http://stig.github.com/json-framework/
If you have an app that interacts with a Web server, you'll need to use JSON. But in fact, the native class library of the iOS platform doesn't support JSON at all, is it a little bit sharper? However, the JSON framework satisfies all your needs, including a parser that parses a JSON string into an object, and a generator that generates a string from an object. This library is too popular, JSON has been mentioned many times, the specific features are not much to say, the so-called "a piece of code wins thousands of words," the following a piece of code to demonstrate it.
- JSON string-> Nsdictionary
- NSString *jsonstring = @ "{\" foo\ ": \" Bar\ "}";
- Nsdictionary *dictionary = [jsonstring jsonvalue];
- NSLog (@ "Dictionary value for \" foo\ "is \"%@\ "", [Dictionary objectforkey:@ "foo"]);
- Nsdictionary-> JSON string
- NSString *newjsonstring = [dictionary jsonrepresentation];
Flurry (Detailed usage statistics)
Address:http://www.flurry.com/product/analytics/index.html
With furry you can get statistics on the number of users, user activity, and user sources of the app. But the best part of him is that you can track the app's own events and error records, all of which are displayed on a Google analytics-like interface, which makes it easy to understand user behavior and problems. Of course, there are a lot of statistical tools on the planet, but this is the author's preferred solution.
Regexkitlite (regular expression support)
Address:http://regexkit.sourceforge.net/RegexKitLite/
Regular expressions are known to all. But what about the iphone SDK when he doesn't exist? How can this endure ah! Use Regexkitlite decisively. Although the call is lite, but the function is very full. Sample code.
- Finds phone number in format nnn-nnn-nnnn
- NSString *regEx = @ "[0-9]{3}-[0-9]{3}-[0-9]{4}";
- For (NSString *match in [Textview.text Componentsmatchedbyregex:regex]) {
- NSLog (@ "Phone number is%@", match);
- }
Facebook IOS SDK (Facebook API class library)
Address:HTTPS://GITHUB.COM/FACEBOOK/FACEBOOK-IOS-SDK
In general, Facebook login on the iphone fully supports the Facebook Graph API and the older REST API. If your app is related to Facebook, trust me, use this.
Sdwebimage (Simplified network image processing)
Address:https://github.com/rs/SDWebImage
Using Sdwebimage to invoke a picture on a Web site is as simple as calling a locally built-in application package. The operation is also very simple, for example
- [ImageView setimagewithurl:[nsurl urlwithstring:@ "Http://example.com/image.png"];
Similar functions are also available in the THREE20, and this will be done again. In comparison, Sdwebimage is mainly a simple and convenient solution for small and fine
GData Client (class library for all Google related services on iphone)
Address:http://code.google.com/p/gdata-objectivec-client/
The name will explain everything. Relevant to Google, it is worth mentioning that the project is very open. There are a number of sample programs available for download.
Coreplot (2D graphics plotter)
Address:http://code.google.com/p/core-plot/
Coreplot has a number of solutions to visualize your data, but also provides a variety of attractive graphics effects, such as bar charts, pie charts, line charts and so on, on their website also provides a large number of sample graphics, many stock price applications, game scores, personal financial management are in use.
THREE20 (Universal iOS Library)
Address:HTTPS://GITHUB.COM/FACEBOOK/THREE20
The Three20 class library was made by Facebook itself, and chatty was his biggest feature. Integrating him into an existing project can be a bit of a hassle, but if you start with Three20, especially when it comes to web-related projects, you'll be able to appreciate the power of God's horse.
Other class libraries
Whether it's an API for interacting with the web, visualizing data, loading pictures on the internet, or creating a social-functional application, the libraries listed here can make development easier. If you are an iOS developer, before you start your next project, be sure to check that you have not used these libraries.
Original link already picture source: IOS Libraries to made Your life easier
Common third-party libraries