首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 操作系统 >

IOS增添底边框的方法

2012-11-19 
IOS添加底边框的方法CALayer *bottomBorder [CALayer layer]float heightself.view.frame.size.height

IOS添加底边框的方法

CALayer *bottomBorder = [CALayer layer];      float height=self.view.frame.size.height-1.0f;    float width=self.view.frame.size.width;    bottomBorder.frame = CGRectMake(0.0f, height, width, 1.0f);     bottomBorder.backgroundColor = [UIColor colorWithWhite:0.8f alpha:1.0f].CGColor;      [self.view.layer addSublayer:bottomBorder]; 

热点排行