// 表格樣式@property (nonatomic, readonly) UITableViewStyle style;
// 數(shù)據(jù)源@property (nonatomic, weak, nullable) iddataSource;
// 代理@property (nonatomic, weak, nullable) iddelegate;
// 設(shè)置行高@property (nonatomic) CGFloat rowHeight;
// tableView的方法
// 刷新表格--全局刷新- (void)reloadData;
// 獲得indexPath行指定的cell- (nullable __kindof UITableViewCell *)cellForRowAtIndexPath:(NSIndexPath *)indexPath;
// 刷新數(shù)組中指定的行--局部刷新- (void)reloadRowsAtIndexPaths:(NSArray*)indexPaths withRowAnimation:(UITableViewRowAnimation)animation- (void)scrollToRowAtIndexPath:(NSIndexPath *)indexPath atScrollPosition:(UITableViewScrollPosition)scrollPosition animated:(BOOL)animated;
// cell的常見屬性//
?圖片@property (nonatomic, readonly, strong, nullable) UIImageView *imageView
// 文本標(biāo)簽@property (nonatomic, readonly, strong, nullable) UILabel *textLabel
// 詳情標(biāo)簽@property (nonatomic, readonly, strong, nullable) UILabel *detailTextLabel
// 容器控件@property (nonatomic, readonly, strong) UIView *contentView;
// 設(shè)置cell的選中樣式(在iOS7之后,效果都是跟默認(rèn)值一樣)@property (nonatomic) UITableViewCellSelectionStyle? selectionStyle;
// 設(shè)置cell右邊顯示的輔助控件的類型@property (nonatomic) UITableViewCellAccessoryType? ? accessoryType;
// 設(shè)置cell右邊顯示的輔助控件@property (nonatomic, strong, nullable) UIView? ? ? *accessoryView;
// 設(shè)置背景控件@property (nonatomic, strong, nullable) UIView *backgroundView;// 設(shè)置cell選中時(shí)顯示的控件@property (nonatomic, strong, nullable) UIView *selectedBackgroundView;
// cell的方法// 初始化方法- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(nullable NSString *)reuseIdentifier
// 數(shù)據(jù)源方法// 返回組數(shù)(默認(rèn)1組)- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView;
// 返回第section對(duì)應(yīng)的行數(shù)- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section;
// 返回indexPath行對(duì)應(yīng)的cell- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath;
// 返回第section組對(duì)應(yīng)的頭部標(biāo)題- (nullable NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section;
// 返回第section組對(duì)應(yīng)的尾部描述- (nullable NSString *)tableView:(UITableView *)tableView titleForFooterInSection:(NSInteger)section;
// 返回分組索引的標(biāo)題數(shù)組- (nullable NSArray*)sectionIndexTitlesForTableView:(UITableView *)tableView;
// 監(jiān)聽cell右邊輔助按鈕的點(diǎn)擊事件
- (void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath;
// 代理方法
// 返回indexPath行對(duì)應(yīng)行高
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath;
// 監(jiān)聽indexPath行的選中事件
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;