OC与Swift两种实现方式基本上区别不大,主要是在一些对象或方法的调用方式不同
OC代码样式:
self.view.backgroundColor = [UIColor blackColor];
//加载颗粒状的火花图片
CAEmitterLayer *emitterLa = [CAEmitterLayer layer];
emitterLa.emi...
分类:
编程语言 时间:
2016-07-22 19:29:31
阅读次数:
309
<!--?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
// 1.设置选中文字颜色 [[UITabBarItem appearance] setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIColor colorWithRed:234/255.0 green:50/25 ...
分类:
其他好文 时间:
2016-07-19 13:33:35
阅读次数:
161
YY直播点赞效果烟花演示效果会持续更新动画相关的小效果点我下载工程-感觉不错点个Star代码展示 self.view.backgroundColor = [UIColor blackColor];
self.caELayer = [CAEmitterLayer layer];
// 发射源
self.caELayer.em...
分类:
移动开发 时间:
2016-07-19 10:12:51
阅读次数:
256
如何将 NavigationBar 的半透明效果关闭?只需三行代码就可以:self.navigationController.navigationBar.barTintColor = [UIColor whiteColor]; self.navigationController.navigation ...
分类:
其他好文 时间:
2016-07-15 23:42:36
阅读次数:
189
1、tableView.backgroundColor = [UIColor clearColor]; 2、self.backgroundColor = dGray;(uitableviewcell) 注: 如果设置为self.contentView.backgroundColor = dGray; ...
分类:
其他好文 时间:
2016-07-15 20:23:23
阅读次数:
170
//创建uilabel UILabel *label1 = [[UILabel alloc] initWithFrame:CGRectMake(20, 40, 280, 80)]; //设置背景色 label1.backgroundColor = [UIColor grayColor]; //设置t ...
分类:
其他好文 时间:
2016-07-15 17:01:31
阅读次数:
164
//设置不同字体颜色 -(void)fuwenbenLabel:(UILabel *)labell FontNumber:(UIFont *)font AndRange:(NSRange)range AndColor:(UIColor *)vaColor { NSMutableAttributedS ...
分类:
移动开发 时间:
2016-07-12 18:54:39
阅读次数:
239
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
Map : 映射 UITextField *textField =[[UITextField alloc]initWithFrame:CGRectMake(100, 100, 100, 40)]; textField.backgroundColor =[UIColor redColor]; [sel ...
分类:
移动开发 时间:
2016-07-04 11:30:02
阅读次数:
241