IOS Development Specification

Source: Internet
Author: User

Daniel is a great opportunity to learn from the company.

Today we've shared a code specification

Like UITableViewCell.

1. First build a data model based on the data source required by this cell, only for the cell benefits: Data Independence

2. For instance variables inside the cell use Setter Getter method to initialize some quantitative properties can be set at this time

3. Assign values to the corresponding instance variable when the current view is assigned (using the model created in 1)

Throughout the code interface

Code distinguishes categories with tags

#pragma mark-life cycle     -(void) viewdidload ... #pagma mark-protocols  //Agent Method -(uitableviewcell? *) TableView: (UITableView *?) TableView Cellforrowatindexpath: (Nsindexpath *) Indexpath ... #pragma mark-event response   -(void) Didclicktabbutton: (ID) Sender#pragma mark-private methods#pragma mark-getter and setter

IOS Development Specification

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.