发现iOS6里面新添加的一个UIView的属性,可以做什么,你懂得!!!
- (UIView *)viewForBaselineLayout NS_AVAILABLE_IOS(6_0);
代码如下:
UIImageView *bgshow = [UIImageView new];
[bgshow setFrame:CGRectMake(0, 0, CGRectGetWidth(self.bounds), 0.5)];
bgshow.backgroundColor = [UIColor colorWithRed:23.0/255.0 green:28.0/255.0 blue:36.0/255.0 alpha:0.3];
[self.viewForBaselineLayout addSubview:bgshow];