iOS Learning-Private Address Book

Source: Internet
Author: User

Through a period of time iOS learning completed a simple application, "private Address Book".

Operating effects such as:

1. Login Page

2. List of contacts

3. Add

4. Editing

5. Delete

6. Logout

The total view structure is as follows:

Summary This procedure is the knowledge point

1, the use of nsnavigation controller to manage each controller.

2. Use nskeyedarchiver to cache address Book data

3. How to transfer data between controllers

The transmitted data is divided into the data of CIS and inverse transmission.

The Nsnavigation agent method can be implemented in the Prepareforsegue to obtain the target controller, to

The target controller adds data properties to assign values.

The target controller can be used to add the proxy method, and the source controller implements the Proxy method to

Gets the data passed in by the target controller. The source controller is processed after the data has been obtained.

Another: note that assigning values to controls in the target controller when passing data must wait until the load is complete before assigning the "viewdidappear" method.

4, iOS notification to monitor the Change event Textfeild, the existence of the value can be logged in, add and save button operation.

Object : Self.name];     object: Self.phone];

Note: After the current controller adds a notification listener, a cancellation notification will be made when the controller is destroyed.

-(void) dealloc{    [[Nsnotificationcenter defaultcenter]removeobserver:self];}

iOS Learning-Private Address Book

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.