随笔分类 -  IOS方法总汇

摘要:Initializing a View Object //初始化view- (id)initWithFrame:(CGRect)aRect //通过一个矩形对象初始化Configuring a View’s Visual Appearance //配置视觉展示@property(nonatomic, copy) UIColor *backgroundColor //设置背景色@property(nonatomic, getter=isHidden) BOOL hidden //隐藏view,默认为NO@property(nonatomic) CGFloat alpha //设置透明度,0.0至 阅读全文
posted @ 2013-04-07 20:53 张三的猫 阅读(535) 评论(0) 推荐(0) 编辑
摘要:Configuring Rows for the Table View //配置table的列表- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath //告诉委托指定cell的高度- (NSInteger)tableView:(UITableView *)tableView indentationLevelForRowAtIndexPath:(NSIndexPath *)indexPath //告诉委托指定cell的缩进等级- (void)tableView: 阅读全文
posted @ 2013-04-01 16:52 张三的猫 阅读(588) 评论(0) 推荐(1) 编辑
摘要:Configuring a Table View//配置表格- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath //给予数据源指定indexPath位置的Cell元素(required method)- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView //给予数据源整个table包含的section数,默认为1- (NSInteger)tableView:(UIT 阅读全文
posted @ 2013-04-01 16:28 张三的猫 阅读(210) 评论(0) 推荐(0) 编辑
摘要:Initializing a UITableView Object //初始化UITableView对象- (id)initWithFrame:(CGRect)frame style:(UITableViewStyle)style //通过Frame初始化Configuring a Table View //配置Table视图@property(nonatomic, readonly) UITableViewStyle style //Table样式(可选UITableViewStylePlain, UITableViewStyleGrouped)- (NSInteger)numberOfRo 阅读全文
posted @ 2013-03-24 02:34 张三的猫 阅读(572) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示