码迷,mamicode.com
首页 >  
搜索关键字:uicolor uiimage    ( 1989个结果)
两个按钮(背景图不同)的翻转
UIButton *downButtonOne = [[UIButton alloc]initWithFrame:CGRectMake(0, 0, self.bounds.size.width, 50)]; [downButtonOne setImage:[UIImage imageNamed...
分类:其他好文   时间:2014-07-18 18:34:16    阅读次数:191
UIWebView相关设置
让UIWebView的背景透明:12self.webView.backgroundColor = [UIColor clearColor];self.webView.opaque = NO这样就可以背景透明了,如果还是无效的话,那么需要在html里面加入: 去掉uiwebview滚动到边缘时的阴影....
分类:Web程序   时间:2014-07-18 14:26:56    阅读次数:223
UIImage 旋转和保存旋转 (转载)
最近一直没有写笔记, 总感觉自己少了点什么, 也没有转载什么有用的笔记, 今天小弟特此献上一篇图片旋转和保存旋转的功能实现, 注意这是转载, 我是来当自己笔记的, 哈哈哈哈... 1 @interface ViewController () 2 { 3 UIImageView * iv; 4...
分类:其他好文   时间:2014-07-16 18:41:02    阅读次数:195
设置背景为白色,避免从A视图跳转到B视图的时候出现卡顿
- (void)viewDidLoad{ [super viewDidLoad]; self.view.backgroundColor = [UIColor whiteColor];}
分类:其他好文   时间:2014-07-16 17:06:52    阅读次数:163
NSMutableAttributedString 设置不同颜色,不同字体的String
UILabel *infoLabel = [[UILabel alloc]initWithFrame:CGRectMake(95, 20, 190, 70)]; infoLabel.backgroundColor = [UIColor clearColor]; infoLabel.textAl...
分类:其他好文   时间:2014-07-16 14:10:50    阅读次数:162
iOS 图片拉伸 resizableImageWithCapInsets
UIImage *image = [[UIImage imageNamed:@"test.png"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 10, 0, 10)];其中Insets这个参数的格式是(top,left,bottom,right)...
分类:移动开发   时间:2014-07-16 14:00:47    阅读次数:216
textView 圆角
#import [self.content.layer setBackgroundColor:[[UIColor whiteColor] CGColor]];[self.content.layer setBorderColor:[[UIColor grayColor] CGColor]];[self...
分类:其他好文   时间:2014-07-14 21:59:15    阅读次数:201
ios如果写一个提示带动画的View,可以来引导用户行为
先上图: 这个UIView可以这样写: -(id)initWithFrame:(CGRect)frame backImage:(UIImage*)image msgStr:(NSString*)txt txtColor:(UIColor*)color{ self = [super initWithFrame:frame]; if (self)...
分类:移动开发   时间:2014-07-14 11:22:27    阅读次数:246
CUICatalog: Invalid asset name supplied: (null), or invalid scale factor: 2.000000
今天在搭界面的时候发现个问题,以前从来没碰到过,感觉很奇葩,找了好长时间终于找到了。把这个警告截图上来和大家分享下。 这个提示的意思是说你用了这个方法 [UIImage imageNamed:name];但是这个name却是空的,所以就报了这个错了。 解决方法,在项目中搜索[UIImage imageNamed:,然后打印看看所谓的name是否为空。找到后替换。...
分类:其他好文   时间:2014-07-12 22:59:25    阅读次数:397
iOS 去掉导航栏的边界黑线&去掉搜索框的边界黑线和其中文本输入框的阴影 - 解决方案
去掉导航栏的边界黑线 in viewDidload: [self.navigationController.navigationBar setBackgroundImage:[[UIImage alloc] init] forBarMetrics:UIBarMetricsDefault]; self.navigationController.navigationBar.shad...
分类:移动开发   时间:2014-07-12 19:36:20    阅读次数:208
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!