码迷,mamicode.com
首页 >  
搜索关键字:uicolor    ( 848个结果
UIImage与UIColor互转
Objective-C UIColor -> UIImage -?(UIImage*)?createImageWithColor:?(UIColor*)?color { ????CGRect?rect=CGRectMake(0.0f,?0.0f,?1.0f,?1.0f); ????UIGraphicsBeginImageContext(rect.size);...
分类:其他好文   时间:2015-09-06 14:45:02    阅读次数:189
CALayer
刚刚无聊,画了一个月亮。- (void)viewDidLoad { [super viewDidLoad]; self.view.layer.backgroundColor = [UIColor blackColor].CGColor; CALayer *layer = [CALayer ...
分类:其他好文   时间:2015-08-31 21:31:49    阅读次数:96
利用Quartz2D-contex绘制三角形
//获取上下文 CGContextRef context =UIGraphicsGetCurrentContext(); //线条加粗 CGContextSetLineWidth(context , 5); //设置背景颜色 [[UIColor grayColor]set]; UIRectFill(...
分类:其他好文   时间:2015-08-29 09:39:15    阅读次数:186
Quartz2D-contex绘制三角形
//获取上下文 CGContextRef context =UIGraphicsGetCurrentContext(); //线条加粗 CGContextSetLineWidth(context , 5); //设置背景颜色 [[UIColor grayColor]set]; UIRectFill(...
分类:其他好文   时间:2015-08-29 09:36:37    阅读次数:138
获取图片某点或区域的颜色
- (UIColor*) getPixelColorAtLocation:(CGPoint)point { UIColor* color = nil; CGImageRef inImage = self.image.CGImage; // Create off screen bitmap conte...
分类:其他好文   时间:2015-08-28 21:17:15    阅读次数:180
自定义UITableViewCell的背景颜色
自定义UITableViewCell的背景颜色,实际上是对cell的contentView的背景颜色进行设置,所以可以有以下方法:方法一:cell.contentView.backgroundColor = [UIColor redColor];方法二:UITableViewCell *cell =...
分类:其他好文   时间:2015-08-28 15:11:30    阅读次数:132
iOS中的触摸事件(TouchView) - (代理响应) - (实现touch的按钮化)
#import "RootViewController.h"#import "ActionView.h"#import "UIColor+MyUIColor.h"@interface RootViewController ()@end@implementation RootViewControlle...
分类:移动开发   时间:2015-08-27 22:33:57    阅读次数:402
iOS中的手势识别的积累:UIGestureRecognizer
#import "RootViewController.h"#import "UIColor+MyUIColor.h"@interface RootViewController ()@end@implementation RootViewController/* UITapGestureRecogn...
分类:移动开发   时间:2015-08-27 22:26:46    阅读次数:194
iOS背景图片大小不一致问题
在iOS 开发过程中,我们有时候可能会用到UIColor * color=[UIColor colorWithPatternImage:image];有时候会出现背景图片显示不完整或者背景图片显示是多张而不是一整张图片.这时候我们就需要将图片的尺寸放大或者缩小到View的大小来实现背景图片的完整.具...
分类:移动开发   时间:2015-08-27 18:19:04    阅读次数:224
iOS UISearchBar 设置光标颜色和取消按钮颜色
这个问题其实可以取个巧路,大家都知道设置SearchBar的tintcolor的方法searchBar.tintColor = [UIColor blueColor]; [[UIBarButtonItem appearanceWhenContainedIn:[UISearchBar class], ...
分类:移动开发   时间:2015-08-27 18:09:27    阅读次数:3249
848条   上一页 1 ... 41 42 43 44 45 ... 85 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!