码迷,mamicode.com
首页 >  
搜索关键字:uicolor    ( 848个结果
LTBounceSheetDemo(仿退出登录)
点击任何处效果图:点击“取消”或“退出”的效果图:工程图:代码:RootViewController.h#import //加入头文件#import "LTBounceSheet.h"//define文件#define color [UIColor colorWithRed:0/255.0 gree...
分类:其他好文   时间:2014-12-05 17:10:50    阅读次数:204
16进制颜色与UIColor互转
效果图:代码:- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view. UIView *view=[[UIView alloc]initWithF...
分类:其他好文   时间:2014-12-02 17:02:58    阅读次数:144
Swift学习一
let 声明常量,var 声明变量//创建一个按钮var btn = UIButton()btn.frame = CGRectMake(100,100,100,100)btn.backgroundColor = UIColor.redColor()self.view.addSubview(btn)/...
分类:编程语言   时间:2014-11-30 00:18:03    阅读次数:376
一周学到了什么
c语言复习了一遍 ios 现在知道@interface声明类 :后面接的是类 student *str=[[student alloc]init] 分配空间 NSString *text 设置Lable中的文本内容UIFont font设置字体 UIColor *textcolor 设置文本颜色
分类:其他好文   时间:2014-11-29 15:52:24    阅读次数:221
IOS设置图片背景
在UIViewController里面这样设置:self.view.backgroundColor = [UIColor colorWithPatternImage: [UIImage imageNamed:@"1.jpg"] ];
分类:移动开发   时间:2014-11-26 16:02:32    阅读次数:159
iOS自动布局
一开始用VFL语言都是这样实现自动布局的,一两个控件还好,多几个控件简直不能忍。 _backgroundImageView = [[UIImageView alloc] init]; _backgroundImageView.backgroundColor = [UIColor clearColor]; _backgroundImageView.translatesAutor...
分类:移动开发   时间:2014-11-25 23:49:15    阅读次数:247
修改UINavigationBar 类
varitem:UINavigationItem=UINavigationItem();varviewTitle=UIView();viewTitle.backgroundColor=UIColor.redColor();viewTitle.frame=CGRectMake(0,0,20,30)item.titleView=viewTitle;varbutton:UIBarButtonItem=UIBarButtonItem(title:"Left_1",style:UIBarButtonItemStyle...
分类:其他好文   时间:2014-11-24 22:46:54    阅读次数:320
读取txt文件
UITextView *textView = [[UITextView alloc]initWithFrame:CGRectMake(0, 100, 320, 200)]; textView.backgroundColor = [UIColor redColor]; textView.textAli...
分类:其他好文   时间:2014-11-24 18:38:16    阅读次数:134
ios 绘图的时候line宽度最小为2的解决方案
CGContextMoveToPoint(ctx, 4.5, (KCaladerViewOfHeadHight-1)+0.5); [[UIColor colorWithRed:61/255.0 green:122/255.0 blue:215/255.0 alpha:1] setStroke...
分类:移动开发   时间:2014-11-24 17:08:33    阅读次数:139
Unknown type name 'UIColor" 的问题
遇到如下的问题平时都没太注意创建UIViewController的时候Xcode给你引入的类库,所以解决方法是:在.h里#import 解决问题!
分类:其他好文   时间:2014-11-24 13:16:44    阅读次数:517
848条   上一页 1 ... 70 71 72 73 74 ... 85 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!