新建一个Category,命名为UIColor+Hex,表示UIColor支持十六进制Hex颜色设置。 UIColor+Hex.h文件, #import?<UIKit/UIKit.h>
#define?RGBA_COLOR(R,?G,?B,?A)?[UIColor?colorWithRed:((R)?/?255.0f)?...
分类:
移动开发 时间:
2014-08-28 11:41:29
阅读次数:
260
今天想改一下WebView的背景色,使用了如下两种常规的修改背景色的方法都不行tintWebView.backgroundColor = [UIColor greenColor];或tintWebView.scrollView.backgroundColor = [UIColor greenColo...
分类:
Web程序 时间:
2014-08-28 10:58:09
阅读次数:
238
- (void)addStripe{ [super viewDidLoad]; // self.view.backgroundColor = [UIColor redColor]; // 1.创建一行背景图片 CGFloat rowW = self.view.frame.size.width;//....
分类:
移动开发 时间:
2014-08-27 21:54:28
阅读次数:
364
- (void)viewDidLoad
{
[super viewDidLoad];
self.view.backgroundColor = [UIColor whiteColor];
UITapGestureRecognizer *doubleTap =[[UITapGestureRecognizer alloc] initWithTarget:self ac...
分类:
其他好文 时间:
2014-08-27 13:09:17
阅读次数:
153
- (void)initSearchbar{
self.wineSearchBar.delegate = self;
[self.wineSearchBar setScopeBarButtonTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIColor redColor], NSForegr...
分类:
移动开发 时间:
2014-08-26 22:59:26
阅读次数:
316
UIView *view1=[[UIView alloc] initWithFrame:CGRectMake(50, 50, 100, 100)]; view1.backgroundColor=[UIColor yellowColor]; view1.tag=1; ...
分类:
移动开发 时间:
2014-08-26 01:42:45
阅读次数:
223
+(UIImage *)imageDrawCircleWithImage:(UIImage *)originImage{ CGFloat padding = 5 ; // 圆形图像距离图像的边距 UIColor * epsBackColor = [ UIColor gre...
分类:
移动开发 时间:
2014-08-23 19:00:11
阅读次数:
244
//先创建一个霓虹灯视图
NSArray *arr = [NSArray arrayWithObjects:[UIColor purpleColor],[UIColor cyanColor],[UIColor blueColor],[UIColor greenColor],[UIColor yellowColor],[UIColor orangeColor],[UIColor redCol...
分类:
其他好文 时间:
2014-08-23 11:25:30
阅读次数:
179
一.点击textField没有响应
(1)textField上面还有视图(如下)
UITextField *tf = [[UITextField alloc] initWithFrame:CGRectMake(50, 100, 220, 40)];
tf.backgroundColor = [UIColor yellowColor];
tf.borderSt...
分类:
其他好文 时间:
2014-08-23 08:50:00
阅读次数:
149
- (void)drawLine{
//view是曲线的背景view
UIView *view = [[UIView alloc]initWithFrame:CGRectMake(10, 0, 300, 300)];
view.backgroundColor = [UIColor whiteColor];
[self.view addSubview:vie...
分类:
移动开发 时间:
2014-08-22 16:29:09
阅读次数:
247