码迷,mamicode.com
首页 >  
搜索关键字:uicolor    ( 848个结果
使用OC和Swift两种语言写一个发射烟花的小项目
OC与Swift两种实现方式基本上区别不大,主要是在一些对象或方法的调用方式不同 OC代码样式: self.view.backgroundColor = [UIColor blackColor];          //加载颗粒状的火花图片     CAEmitterLayer *emitterLa = [CAEmitterLayer layer];     emitterLa.emi...
分类:编程语言   时间:2016-07-22 19:29:31    阅读次数:309
UIColor RGB 调色注意
<!--?xml version="1.0" encoding="UTF-8" standalone="no"?--> /比如rgb 色值为73、 148 、230 那么ios 里面要在后面加.0f 再除以255[bline setBackgroundColor:[UIColor colorWith ...
分类:其他好文   时间:2016-07-20 22:56:25    阅读次数:288
设置tabbar的选中状态下标签文字的颜色
// 1.设置选中文字颜色 [[UITabBarItem appearance] setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIColor colorWithRed:234/255.0 green:50/25 ...
分类:其他好文   时间:2016-07-19 13:33:35    阅读次数:161
iOS 仿YY直播心形动画 & 烟花动画
YY直播点赞效果烟花演示效果会持续更新动画相关的小效果点我下载工程-感觉不错点个Star代码展示 self.view.backgroundColor = [UIColor blackColor]; self.caELayer = [CAEmitterLayer layer]; // 发射源 self.caELayer.em...
分类:移动开发   时间:2016-07-19 10:12:51    阅读次数:256
如何将 NavigationBar 的半透明效果关闭?
如何将 NavigationBar 的半透明效果关闭?只需三行代码就可以:self.navigationController.navigationBar.barTintColor = [UIColor whiteColor]; self.navigationController.navigation ...
分类:其他好文   时间:2016-07-15 23:42:36    阅读次数:189
uitableviewcell背景颜色
1、tableView.backgroundColor = [UIColor clearColor]; 2、self.backgroundColor = dGray;(uitableviewcell) 注: 如果设置为self.contentView.backgroundColor = dGray; ...
分类:其他好文   时间:2016-07-15 20:23:23    阅读次数:170
UILabel各种属性和用法
//创建uilabel UILabel *label1 = [[UILabel alloc] initWithFrame:CGRectMake(20, 40, 280, 80)]; //设置背景色 label1.backgroundColor = [UIColor grayColor]; //设置t ...
分类:其他好文   时间:2016-07-15 17:01:31    阅读次数:164
iOS 设置不同的字体颜色
//设置不同字体颜色 -(void)fuwenbenLabel:(UILabel *)labell FontNumber:(UIFont *)font AndRange:(NSRange)range AndColor:(UIColor *)vaColor { NSMutableAttributedS ...
分类:移动开发   时间:2016-07-12 18:54:39    阅读次数:239
Swift之控件-UIlabel
let label = UILabel(frame:CGRect(x: 20,y: 100,width: 280,height: 40)) label.text = "理想接电话是否很沮丧和甲方狙击手的开发可谓文件的附件二反馈句" label.backgroundColor = UIColor.bl ...
分类:编程语言   时间:2016-07-07 16:59:49    阅读次数:199
iOS 开发之 ReactiveCocoa(进阶)
Map : 映射 UITextField *textField =[[UITextField alloc]initWithFrame:CGRectMake(100, 100, 100, 40)]; textField.backgroundColor =[UIColor redColor]; [sel ...
分类:移动开发   时间:2016-07-04 11:30:02    阅读次数:241
848条   上一页 1 ... 18 19 20 21 22 ... 85 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!