![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ios开发小技巧
翻滚吧牛宝宝20
豪大大的ios学习之路
展开
-
让button有边框,或变成圆形
很多时候我们需要一个圆角的button,而UIButton控件的边框默认是方的,或者不满足我们的需求。这时我们就需要用代码去修改它。[testBtn.layer setMasksToBounds:YES]; [testBtn.layer setCornerRadius:8.0]; //设置矩圆角半径 [testBtn.layer setBorderWidth:1.0]; //原创 2015-03-22 09:34:27 · 3633 阅读 · 0 评论 -
解决tableview出现多余行
初学者可能遇到很多意想不到的麻烦,我也一样。比如table的cell老出现空白的行,如图: 其实很简单,只要在代码中加这样一句话: self.tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];原创 2015-03-23 21:05:08 · 554 阅读 · 0 评论