iOS Source Learning Summary Framework

Source: Internet
Author: User

1.ARChromeActivity:

The uiactivity subclass for opening URLs in Google Chrome.

2.KINWebBrowser:

It is written using the iOS 8 Wkwebview API and is compatible with UIWebView on iOS 7.

Kinwebbrowserviewcontroller must is contained in a uinavigationcontroller.

3.Ppgetaddressbook:

    • Ppgetaddressbook the AddressBook Framework (IOS9) and contacts framework (after iOS9) to do the corresponding encapsulation processing;

    • Support to get the first character by contact name Pinyin A~z sort ( emphasis: The second word of the name has been processed, the order is more accurate!);

    • Contacts that support getting the original order are not grouped and can be processed on their own.

4.NullSafe:

A foreigner in GitHub has an empty processing artifact, as long as the category is added to the project can be all worry-free, because the code I also do not understand, so we study ha.

In OC, nil is a pointer to an object that does not exist, and the object definition in OC is assigned nil by default, whereas arrays and dictionaries cannot have nil, but can be [NSNull null]; At the framework level, the foundation defines NSNull, a class method +null , it returns a separate Nsnull object. Nsnull is different from nil and null because it is an actual object, not a 0 value.

5.MLeaksFinder:

Mleaksfinder provides a better solution for memory leak detection. Simply by introducing Mleaksfinder, you can automatically detect memory-leaking objects in the APP run and immediately alert you that you don't need to open additional tools or repeat the scene in order to detect memory leaks. Mleaksfinder can now automatically detect memory leaks for Uiviewcontroller and UIView objects, and can also be extended to detect other types of objects.

Mleaksfinder is very simple to use, referring to Https://github.com/Zepo/MLeaksFinder, basically is to add files in the Mleaksfinder directory to your project, you can at runtime (debug mode) helps you detect memory leaks in your project without having to modify any of your business logic code, and only opens under debug, without affecting your release package at all.

When a memory leak occurs, Mleaksfinder interrupts the statement and tells you exactly which object was compromised. The design here is to assert instead of logging so that the program continues to run because many people do not look at the logs, and assertions can force developers to notice and modify, rather than procrastinate.

6.FBRetainCycleDetector:

Facebook has published a FBRetainCycleDetector tool called, specifically to detect whether an object has a reference loop.

7.DZNEmptyDataSet:

For iOS developers, UITableView is a more control to use in the development process. If the UITableView table view has no data, the page is blank, not a good user experience. We all hope that when the data source is empty, give the user some corresponding prompt, improve the interactive effect.

Dznemptydataset is like the gospel that applies to every iOS project, as long as Dznemptydatasetsource, Dznemptydatasetdelegate are the two protocols, It is OK to implement the corresponding proxy method in UITableView and Uicollectionview.

8.DACircularProgress:

A UIView subclass with a Uiprogressview attribute that creates a multi-style circular progress view with custom colors, sizes, and thicknesses.

9.SSKeychain:

The difference between keychain and userdefaults:

1.keychain is more secure when data is encrypted and stored locally. Path: library/application support/iphone simulator/Simulator version/library/keychains/

Userdefaults data is stored in the. plist file in clear text. Path: library/application support/iphone simulator/Simulator version/applications/apply the corresponding number/ Library/preference/.plist file

2. When you delete the app keychain stored data will not be deleted, user defaults stored data can be deleted with the app

Sskeychain is a keychain package that implements the Add/Remove/query user name and password.

10.TUSafariActivity:

The uiactivity subclass that is used to open URLs in Sari. Similar to the first one in the previous frame.

iOS Source Learning Summary Framework

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.