码迷,mamicode.com
首页 >  
搜索关键字:UIView    ( 2905个结果
IOS CAShapeLayer CAGradientLayer UIBezierPath 使用实例
CGRectrect =CGRectMake(100,100,100,100); UIView* bgView = [[UIViewalloc]initWithFrame:rect]; bgView.backgroundColor= [UIColorgrayColor]; [self.viewa.....
分类:移动开发   时间:2014-07-11 22:44:49    阅读次数:250
这是国旗吗?
- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. UIView *redView = [[UIView...
分类:其他好文   时间:2014-07-10 16:50:02    阅读次数:185
iOS图层关系
原文:http://blog.csdn.net/xingboss3/article/details/7890238UIView表示屏幕上的一块矩形区域,它在App中占有绝对重要的地位,因为IOS中几乎所有可视化控件都是UIView的子类。负责渲染区域的内容,并且响应该区域内发生的触摸事件UIView...
分类:移动开发   时间:2014-07-08 23:55:54    阅读次数:440
iOS UITableView 去除多余分割线
在UITableView初始化时加上以下代码即可: self.tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero]; 效果演示:...
分类:移动开发   时间:2014-07-08 20:24:33    阅读次数:283
遍历UIView的子类
for (id view in self.view.subviews) { if ([view isKindOfClass:[UITextField class]]) { UITextField* textField = (UITextField*)view; [t...
分类:其他好文   时间:2014-07-05 17:30:52    阅读次数:161
uiview 删除某个指定view类的代码块
- (void)removeDynamictItemView:(UIView *)view {     NSMutableArray *itemesToRemove = [NSMutableArray array];     for (UIView *subview in view.subviews) {         if ([subview isKindOfClass:[TB...
分类:其他好文   时间:2014-07-02 11:56:34    阅读次数:174
实现多个UIView之间切换的动画效果
@interface RootViewController (){ UIView *view1; UIView *view2; int flag;}@end@implementation RootViewController- (void)viewDidLoad{ [s...
分类:其他好文   时间:2014-07-02 10:25:29    阅读次数:130
在UIView上得到某一点的颜色值
-(UIColor*)colorOfPoint:(CGPoint)point{unsignedcharpixel[4]={0};CGColorSpaceRefcolorSpace=CGColorSpaceCreateDeviceRGB();CGContextRefcontext=CGBitmapContextCreate(pixel,1,1,8,4,colorSpace,kCGImageAlphaPremultipliedLast);CGContextTranslateCTM(context,-point.x..
分类:其他好文   时间:2014-07-02 06:28:29    阅读次数:194
ios如何在一个UIImageButton的里面加一些自定义的箭头
可以采用如下方法,写一个函数: -(UIImage*) getOneImageButtonWithArrow{ //tmpView做附控件 UIView *tmpView = [[UIView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, 38.0f, 32.0f)]; tmpView.backgroundColor = [UIColo...
分类:移动开发   时间:2014-07-01 09:54:31    阅读次数:246
ios创建画笔的例子(双笔画效果)
定义一个UIView:主要是在这个View里面加一个UIImageView,画图都在这个UIImageView里面进行 @property(nonatomic) CGPoint prePoint; //手指在进入move事件之前的那个点 @property(nonatomic) CGPoint oppsitePoint; //手指在进入move事件之前的那个点 @property(nonat...
分类:移动开发   时间:2014-07-01 09:04:36    阅读次数:359
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!