【UIKit-110-1】#import <UIKit/UITableView.h> 基础创建
来源:互联网 发布:源码授权是什么 编辑:程序博客网 时间:2024/05/22 00:26
@interface UITableView :UIScrollView <NSCoding>
【基础创建】
- (instancetype)initWithFrame:(CGRect)frame style:(UITableViewStyle)style;
@property (nonatomic,readonly) UITableViewStyle style;
@property (nonatomic,assign) id <UITableViewDataSource> dataSource;
@property (nonatomic,assign) id <UITableViewDelegate> delegate;
theTableView = [[UITableView alloc]initWithFrame:CGRectMake(0, 100, self.view.bounds.size.width, 500) style:UITableViewStyleGrouped]; theTableView.delegate = self; theTableView.dataSource = self; [self.view addSubview:theTableView]; /* typedef NS_ENUM(NSInteger, UITableViewStyle) { UITableViewStylePlain, // regular table view UITableViewStyleGrouped // preferences style table view }; */
@property (nonatomic) CGFloat rowHeight; // 默认行高
@property (nonatomic) CGFloat sectionHeaderHeight; // 默认表头高
@property (nonatomic) CGFloat sectionFooterHeight; // 默认表尾高
@property (nonatomic) CGFloat estimatedRowHeightNS_AVAILABLE_IOS(7_0);// 估计行高
@property (nonatomic) CGFloat estimatedSectionHeaderHeightNS_AVAILABLE_IOS(7_0);// 估计表头高
@property (nonatomic) CGFloat estimatedSectionFooterHeightNS_AVAILABLE_IOS(7_0);// 估计表尾高
@property (nonatomic) UIEdgeInsets separatorInsetNS_AVAILABLE_IOS(7_0)UI_APPEARANCE_SELECTOR;// 分割线
@property(nonatomic,readwrite, retain) UIView *backgroundViewNS_AVAILABLE_IOS(3_2);// 可以设置背景图片。
theTableView.rowHeight = 44; theTableView.sectionHeaderHeight = 44; theTableView.sectionFooterHeight = 66; theTableView.estimatedRowHeight = 44; theTableView.estimatedSectionHeaderHeight = 44; theTableView.estimatedSectionFooterHeight = 66; theTableView.backgroundView = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"dadajie_chenjie"]];
- 【UIKit-110-1】#import <UIKit/UITableView.h> 基础创建
- 【UIKit-110-3】#import <UIKit/UITableView.h>增删改移
- 【UIKit-110-4】#import <UIKit/UITableView.h>编辑模式
- 【UIKit-110-5】#import <UIKit/UITableView.h>选中行
- 【UIKit-110-6】#import <UIKit/UITableView.h>外观
- 【UIKit-110-7】#import <UIKit/UITableView.h>提前注册
- 【UIKit-110-9】#import <UIKit/UITableView.h>数据源
- 【UIKit-65-1】#import <UIKit/UINavigationController.h>UINavgationVC基础
- 【UIKit-124-1】#import <UIKit/UIView.h>
- 【UIKit-125-1】#import <UIKit/UIViewController.h>
- 【UIKit-93-1】#import <UIKit/UIScrollView.h>
- 【UUIKit-110-8】#import <UIKit/UITableView.h>代理方法
- 【UIKit-110-2】#import <UIKit/UITableView.h>获取数据与滚动
- 【UIKit-124-2】#import <UIKit/UIView.h>
- 【UIKit-124-3】#import <UIKit/UIView.h>
- 【UIKit-124-4】#import <UIKit/UIView.h>
- 【UIKit-124-5】#import <UIKit/UIView.h>
- 【UIKit-124-6】#import <UIKit/UIView.h>
- 关于JDBC连接Class.forName()的思考
- Auto Layout 界面自动布局系列 (使用代码添加布局约束)
- Swift 学习笔记 - 01
- SQL的四种连接查询
- Swift 学习笔记 - 02
- 【UIKit-110-1】#import <UIKit/UITableView.h> 基础创建
- String与StringBuffer的区别
- 栈的C语言实现
- 杭电1002(可能是输出格式的问题,尚未查明WA原因)
- 欢迎使用CSDN-markdown编辑器
- Android的复合RecyclerView
- Swift 学习笔记 - 03
- Swift 学习笔记 - 04
- Openstack 概念架构详解