04 2013 档案
摘要:1 告诉UIKit你想要实现一个动画2 改变这个属性的值在一个UIView对象中有以下的动画化属性:frame - 你可以使用这个来动画的改变视图的尺寸和位置bounds - 使用这个可以动画的改变视图的尺寸center - 使用这个可以动画的改变视图的位置transform - 使用这个可以翻转或者放缩视图alpha - 使用这个可以改变视图的透明度backgroundColor - 使用这个可以改变视图的背景颜色contentStretch - 使用这个可以改变视图内容如何拉伸
阅读全文
摘要: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至
阅读全文
摘要: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:
阅读全文
摘要: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
阅读全文