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