![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
UI篇
涂鸦青年
字母间穿梭
展开
-
可实现随意切换的button同时随切换改变title的颜色
-(void)btnClick:(UIButton *)sender { static int currentSelectButtonIndex = 0; static int previousSelectButtonIndex=10; currentSelectButtonIndex=sender.tag; UIButton *previousBtn=(UIButt原创 2015-12-14 13:45:46 · 348 阅读 · 0 评论 -
IOS-TextField知多少
//初始化textfield并设置位置及大小 UITextField *text = [[UITextField alloc]initWithFrame:CGRectMake(20, 20, 130, 30)]; //设置边框样式,只有设置了才会显示边框样式 text.borderStyle = UITextBorderStyleRoundedRect; typede转载 2015-12-03 13:59:43 · 303 阅读 · 0 评论 -
使用CAShapeLayer 画任意的图形
CAShapeLayer 是 CALayer 的子类,但是比 CALayer 更灵活,可以画出各种图形 /// -------------------------第一------------------------ // let layer = CAShapeLayer() // layer.frame = CGRectMake(1原创 2016-02-15 11:33:02 · 340 阅读 · 0 评论