(Zt) Common open source class libraries and some examples for iOS development

Source: Internet
Author: User
Tags oauth website server
Original: http://hb.qq.com/a/20111208/001552.htm

  

Apple's applications generally use an elegant, translucent progress display, but this API is not public, so if you use it, it is likely to be removed from 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

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! Let's take a look at a piece of code.

1

2

3

4

5

6

7

8

9

10

11

12

13

-(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

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 framework 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 the specific features. The so-called "a piece of code wins thousands of words" is a demonstration of it with a piece of code.

  

1

2

3

4

5

6

// 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];

Detailed usage statistics of flurry

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.

Regexkitlite Regular Expressions supported

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

2

3

4

5

// Finds phone number in format 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

Facebook login on the iPhone, which fully supports the Facebook Graph API and the older rest API

Sdwebimage simplifies network image processing

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;

Similar functions are available in three20. Let's talk about them later. In comparison, sdwebimage mainly provides a small, precise, simple and convenient solution.

Class Libraries for all Google-related services on the gdata client iPhone

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

Coreplot 2D graphics Plotter

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.

Cthree20 General IOS Library

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.

Scan WiFi Information

Http://code.google.com/p/uwecaugmentedrealityproject/

Http://code.google.com/p/iphone-wireless/

Barcode scanning

Http://zbar.sourceforge.net/iphone/sdkdoc/install.html

TCP/IP communication protocol

Http://code.google.com/p/cocoaasyncsocket/

VoIP/SIP

Http://code.google.com/p/siphon/

Http://code.google.com/p/asterisk-voicemail-for-iphone/

Http://code.google.com/p/voiphone/

720 panoramic display panoramagl

Http://code.google.com/p/panoramagl/

Jabber Client

Http://code.google.com/p/ichabber/

Plblocks

Http://code.google.com/p/plblocks/

Image Processing

Http://code.google.com/p/simple-iphone-image-processing/

Base64 encoding and decoding

Http://code.google.com/p/google-toolbox-for-mac/source/browse/trunk/Foundation? R = 87

XML Parsing

Https://github.com/schwa/TouchXML

Securely Save the user password to the keychain

Https://github.com/ldandersen/scifihifi-iphone

Loading the wait special effect framework (Private API)

Https://github.com/jdg/MBProgressHUD

Pull-down refresh code

Https://github.com/enormego/EGOTableViewPullRefresh

Asynchronously load images and cache code

Http://www.markj.net/iphone-asynchronous-table-image/

IPhone TTS

Https://bitbucket.org/sfoster/iphone-tts

Oauth Authentication

Http://code.google.com/p/oauth/

Http://code.google.com/p/oauthconsumer/

Sfhfkeychainutils (GitHub code download)

Save User Account Password

CPP Code

# Import @ interface sfhfkeychainutils: nsobject {}+ (nsstring *) getpasswordforusername: (nsstring *) username andservicename: (nsstring *) servicename error: (nserror **) error; + (Bool) Storeusername: (nsstring *) username andpassword: (nsstring *) password forservicename: (nsstring *) servicename updateexisting :(Bool) Updateexisting error: (nserror **) error; + (Bool

) Deleteitemforusername: (nsstring *) username andservicename: (nsstring *) servicename error: (nserror **) error; @ end

# Import @ interface sfhfkeychainutils: nsobject {}+ (nsstring *) getpasswordforusername: (nsstring *) username andservicename: (nsstring *) servicename error: (nserror **) error; + (bool) storeusername: (nsstring *) username andpassword: (nsstring *) password forservicename: (nsstring *) servicename updateexisting: (bool) updateexisting error: (nserror **) error; + (bool) deleteitemforusername: (nsstring *) username andservicename: (nsstring *) servicename error: (nserror **) error; @ end

Mgtwitterengine (GitHub code download)

Twitter official objective-c sdk.

Xauthtwitterengine (GitHub code download)

Based on mgtwitterengine, a set of sdks specifically for Xauth.

Egoimageloading (GitHub code download)

Through egoimageloading, we can read images from the server more easily and implement two levels of memory/disc image caching.

Regexkitlite-Regular Expression support (Code download)

IOS Regular Expression Toolkit. If you were a web developer, is there a burst of tears?

CPP Code nsstring * RegEx = @ [0-9] {3}-[0-9] {3}-[0-9] {4 };For

(Nsstring * match in [textview. Text componentsmatchedbyregex: RegEx]) {nslog (@ phone number is % @, match );}

Nsstring * RegEx = @ [0-9] {3}-[0-9] {3}-[0-9] {4 }; for (nsstring * match in [textview. text componentsmatchedbyregex: RegEx]) {nslog (@ phone number is % @, match );}

Gdata client-iPhone library for all of Google's services (Code download)

This toolkit helps you use objective-C to easily access various official Google APIs.

Sdwebimage-Simple Web image support (Code download)

I have never used this toolkit. The introduction is the same as the egoimageloading function introduced in my previous blog. With it, your iOS app can access the image files on the web, which is just as convenient as accessing the local image files on the iPhone. You don't have to worry about any network connection or local cache. But my question is, why does Instagram use egoimageloading instead of sdwebimage?

Coreplot-2D graph plotter (Code download)

I am thinking about making a Stock Market app, but I don't know what tools should I use to plot it? Core plot helps you draw various 2D data graphs.

Three20-General IOS Library (Code download)

After Facebook developed its own iPhone application, it simply gave its IOS code library open-source in the spirit of Pudu cangsheng. Note that three20 is not just a toolkit, but a complete framework. If three20 needs to be moved into your project, it may cause some trouble. If you have trouble and do not know how to solve it, go to three20 official website and check out the solutions you may need.

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.