第14月第1天 uialterview 键盘 uibutton圆角
1.
在IOS 8之后 当UIAlertView 和keyboard 同时出现时,会出现键盘闪现的情况 所以就修正UIAlertView
http://blog.sina.com.cn/s/blog_881ed8500102w114.html
2.uibutton 圆角
http://www.jianshu.com/p/b294c80ba37d
http://www.jianshu.com/p/b294c80ba37d
http://www.cocoachina.com/ios/20150803/12873.html
3.uibutton title left
有些时候我们想让UIButton的title居左对齐,我们设置btn.textLabel.textAlignment = UITextAlignmentLeft是没有作用的,我们需要设置
btn.contentHorizontalAlignment = UIControlContentHorizonAlignmentLeft;
但是问题又出来,此时文字会紧贴到做边框,我们可以设置btn.contentEdgeInsets = UIEdgeInsetsMake(0,10, 0, 0);使文字距离做边框保持10个像素的距离。
http://blog.csdn.net/xiaofei125145/article/details/44412849
4.uitableview 分割线
self.tableView.separatorStyle = UITableViewCellSeparatorStyleSingleLine;
self.tableView.separatorInset = UIEdgeInsetsZero;
self.tableView.separatorColor = UIColorRGB(0xf2f2f2);
//移除分割线
if ([cell respondsToSelector:@selector(setSeparatorInset:)]) {
[cell setSeparatorInset:UIEdgeInsetsMake(0,kScreenWidth,0,0)];
}
if ([cell respondsToSelector:@selector(setLayoutMargins:)]) {
[cell setLayoutMargins:UIEdgeInsetsMake(0,kScreenWidth,0,0)];
}
http://blog.csdn.net/u011619283/article/details/53214208