Chinaunix首页 | 论坛 | 博客
  • 博客访问: 705380
  • 博文数量: 260
  • 博客积分: 7033
  • 博客等级: 少将
  • 技术积分: 2633
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-13 23:15
文章分类

全部博文(260)

文章存档

2012年(2)

2011年(41)

2010年(78)

2009年(139)

我的朋友

分类:

2009-10-26 10:23:45

自定义了一个UITableViewCell,但是在显示在TableView中时,第一个Cell左上角和右上角显示的时候,没有圆角,检查了一下代码,将Cell子类中设置frame的语句屏蔽掉就可以了:

- (id)initWithStyle:(UITableViewCellStyle) style reuseIdentifier: (NSString *) reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])
    {
        //remove this line to keep first cell round-cornered.
        //[self setFrame:CGRectMake(0, 0, 320, 40)];




阅读(2814) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~