码迷,mamicode.com
首页 >  
搜索关键字:uicolor    ( 848个结果
iOS开发技巧(系列十八:扩展UIColor,支持十六进制颜色设置)
新建一个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
修改UIWebView的背景色
今天想改一下WebView的背景色,使用了如下两种常规的修改背景色的方法都不行tintWebView.backgroundColor = [UIColor greenColor];或tintWebView.scrollView.backgroundColor = [UIColor greenColo...
分类:Web程序   时间:2014-08-28 10:58:09    阅读次数:238
ios 添加条纹背景
- (void)addStripe{ [super viewDidLoad]; // self.view.backgroundColor = [UIColor redColor]; // 1.创建一行背景图片 CGFloat rowW = self.view.frame.size.width;//....
分类:移动开发   时间:2014-08-27 21:54:28    阅读次数:364
scrollview里面多张图片,每张都能放大缩小
- (void)viewDidLoad {     [super viewDidLoad]; self.view.backgroundColor = [UIColor whiteColor];          UITapGestureRecognizer *doubleTap =[[UITapGestureRecognizer alloc] initWithTarget:self ac...
分类:其他好文   时间:2014-08-27 13:09:17    阅读次数:153
iOS 改变Search Bar中Scope Button中文本的颜色和字体
- (void)initSearchbar{ self.wineSearchBar.delegate = self; [self.wineSearchBar setScopeBarButtonTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIColor redColor], NSForegr...
分类:移动开发   时间:2014-08-26 22:59:26    阅读次数:316
UIview 学习与自定义--ios
UIView *view1=[[UIView alloc] initWithFrame:CGRectMake(50, 50, 100, 100)]; view1.backgroundColor=[UIColor yellowColor]; view1.tag=1; ...
分类:移动开发   时间:2014-08-26 01:42:45    阅读次数:223
ios 如何让头像图片成为一个圆形
+(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没有响应与在屏幕上未看到创建的视图问题(UI)
一.点击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
ios 绘制曲线走势图
- (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
848条   上一页 1 ... 77 78 79 80 81 ... 85 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!