ITeye博客

给 TextView 加个圆角

niCe · 2010-12-31 10:47 · 界面相关 · 移动开发 · Markdown

给 TextView 加上圆角无疑会让界面更漂亮更有苹果味儿

 

 

   #import <QuartzCore/QuartzCore.h>

    [self.content.layer setBackgroundColor:[[UIColor whiteColor] CGColor]];
    [self.content.layer setBorderColor:[[UIColor grayColor] CGColor]];
    [self.content.layer setBorderWidth:1.0];
    [self.content.layer setCornerRadius:8.0];
    [self.content.layer setMasksToBounds:YES];
    self.content.clipsToBounds = YES;

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。