iOS WEEK2 Contact's implementation

Source: Internet
Author: User

2015.4.7

New project content, inside created Navigationcontroller and Tablecontroller. Navigationcontroller as the root controller of window, Tablecontroller is the root controller for Navigationcontroller.

There is also a controller that is Congactinfocontroller, which is the controller of the Tablecontroller next interface.

1.model part

(1) ContactInfo

Attribute two: Name and phone

Method: None

(2) Contactmanager

Properties: Count (number of contacts)

Method: Addcontract,delcontract,contractatindex

Private property (written in implementtation): contracts (used to store all contacts)

Private methods (written in implementtation): Description (Very important)

2.controller part

(2)

(3) Contactinfocontroller

Property: ContactInfo *contact

Private properties: Uitextfield *name,*phone

Implementation method: Loadview ()

Self.view initialized, and then Self.view Addsubview: (label or button)

SetContact the contact information in the parameter is displayed in the view, remember to add the [self view] method, because the Loadview () is called only when you call your own view

iOS WEEK2 Contact's implementation

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.