2011年2月23日
摘要: 在layoutSubviews画图时这样实现:CGSize defaultNameTextSize = [_defaultNameLabel.text sizeWithFont:_defaultNameLabel.font]; CGFloat defaultNameTextOffsetX = contentRect.size.width - defaultNameTextSize.width - PADDING; CGFloat defaultNameTextWidth = contentRect.size.width - contentRect.origin.x - ICON_DIMENSI 阅读全文
posted @ 2011-02-23 09:01 fairycao 阅读(543) 评论(0) 推荐(0)
摘要: 1)继承UITableViewCell2)实现- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier _nameLabel = [[UILabel alloc] init]; _nameLabel.textAlignment = UITextAlignmentLeft; _nameLabel.font = [UIFont boldSystemFontOfSize:14]; _nameLabel.textColor = [UIColor colorWithRed:0.4 阅读全文
posted @ 2011-02-23 08:53 fairycao 阅读(232) 评论(0) 推荐(0)
摘要: custum header section:1)继承uiview2)实现- (id)initWithFrame:(CGRect)frame _nameLabel = [[UILabel alloc] init]; _nameLabel.textAlignment = UITextAlignmentLeft; _nameLabel.font = [UIFont boldSystemFontOfSize:14]; _nameLabel.textColor = [UIColor blackColor]; _nameLabel.backgroundColor = [UIColor clearColor 阅读全文
posted @ 2011-02-23 08:49 fairycao 阅读(346) 评论(0) 推荐(0)