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