UISwitch *myswitch=[[UISwitch alloc]initWithFrame:CGRectMake(100, 40, 0, 0)]; //打开时颜色 myswitch.onTintColor=[UIColor redColor]; //关闭时颜色 myswitch.tintC....
分类:
其他好文 时间:
2015-09-13 14:37:58
阅读次数:
133
//初始化imageview UIImageView *imageview=[[UIImageView alloc]initWithFrame:CGRectMake(100, 100, 100, 100)]; //设置背景颜色 imageview.backgroundColor=[UIColor ....
分类:
其他好文 时间:
2015-09-12 22:23:00
阅读次数:
216
//初始化 UIView *view=[[UIView alloc]initWithFrame:CGRectMake(100, 100, 100, 100)]; //背景颜色view.backgroundColor=[UIColor redColor];//透明度view.alpha=1;//缩放样...
分类:
其他好文 时间:
2015-09-12 22:21:09
阅读次数:
235
知识点:将View上的信息保存到相册关于绘制图形、路线******************************************#import @interface FFFPaintView : UIView@property (nonatomic,strong) UIColor *lin...
分类:
其他好文 时间:
2015-09-11 22:13:27
阅读次数:
219
#import @interface UIColor (Hex)+ (UIColor *)colorWithHex:(long)hexColor;+ (UIColor *)colorWithHex:(long)hexColor alpha:(float)opacity;@end#import ....
分类:
其他好文 时间:
2015-09-11 12:41:18
阅读次数:
116
UILabel * label =[[UILabel alloc]initWithFrame:CGRectMake(100, 200, 100, 100)]; label.backgroundColor=[UIColor cyanColor]; [self.view addSubview:labe....
分类:
移动开发 时间:
2015-09-09 22:37:34
阅读次数:
232
//// UIColor+Random.h// 饼图//// Created by YaguangZhu on 15/9/9.// Copyright (c) 2015年 YaguangZhu. All rights reserved.//#import @interface UIColor...
分类:
移动开发 时间:
2015-09-09 19:01:55
阅读次数:
180
设置UIview的动画属性 //边框宽度 self.ouroleView.layer.borderWidth=10; //边框颜色 self.ouroleView.layer.borderColor=[UIColor blueColor].CGColor; ...
分类:
移动开发 时间:
2015-09-09 12:58:13
阅读次数:
136
calayer=[CALayer layer]; // SCMylayer *layer = [SCMylayer layer]; //2.设置layer的属性 calayer.backgroundColor=[UIColor clearColor].CGColor; ...
分类:
其他好文 时间:
2015-09-08 12:20:45
阅读次数:
171
解决方法可以在自定义的TabbarViewController里viewDidLoad方法里self.view.backgroundColor = [UIColor whiteColor];如果没有自定义tabbarController的话可以这样self.navigationController....
分类:
其他好文 时间:
2015-09-06 22:49:13
阅读次数:
227