码迷,mamicode.com
首页 >  
搜索关键字:cgrect    ( 583个结果
init&initWithFrame&initWithCoder
//当我们所写的程序里没用用Nib文件(XIB)时,用代码控制视图内容,需要调用initWithFrame去初始化 - (id)initWithFrame:(CGRect)frame { if (self =[superinitWithFrame:frame]) { // 初始化代码 } retur
分类:其他好文   时间:2016-03-10 20:22:00    阅读次数:153
水波纹效果
水波纹效果 Code 1.-(void)drawRect:(CGRect)rect {2. [super drawRect:rect];3. [[UIColor colorWithRed:22 / 255.0 green:163 / 255.0 blue:130 / 255.0 alpha:1] s
分类:其他好文   时间:2016-02-24 22:37:15    阅读次数:263
UITableView
IOS中UITableView使用总结 一、初始化方法 - (instancetype)initWithFrame:(CGRect)frame style:(UITableViewStyle)style; 这个方法初始化表视图的frame大小并且设置一个风格,UITableViewStyle是一个枚
分类:其他好文   时间:2016-02-20 21:40:51    阅读次数:329
frame和bounds
frame其实也是一个结构体,是CGRect的一个变量。 //// ViewController.m// UIView01//// Created by cqy on 16/2/12.// Copyright © 2016年 程清杨. All rights reserved.// #import "
分类:其他好文   时间:2016-02-16 18:28:08    阅读次数:138
iOS 视图在不同View之间的切换(对于convertRect:函数的一些理解)
可以通过以下函数完成坐标体系在不同View之间的切换,如下面是完成当前View向ParentView坐标的转换(一个矩阵转换)CGRect parentRect = [currentView convertRect:blankImageView.bounds toView:self.supervie
分类:移动开发   时间:2016-01-28 19:06:34    阅读次数:335
iOS UIView头文件部分翻译
/** * 通过一个frame来初始化一个UI控件 */ - (id)initWithFrame:(CGRect)frame; // YES:能够跟用户进行交互 @property(nonatomic,getter=isUserInteractionEnabled) BOOL userInterac
分类:移动开发   时间:2016-01-28 16:48:13    阅读次数:230
iOS_自定义返回按钮
//在-(void)viewWillAppear:(BOOL)animated方法中添加返回按钮//返回按钮 UIButton *leftButton = [UIButton buttonWithType:UIButtonTypeCustom]; leftButton.frame=CGRect...
分类:移动开发   时间:2016-01-26 12:28:13    阅读次数:215
swiftDay01笔记 --swift和OC的不同点 && swift的基础语法
1.创建对象 带圆括号* OC: alloc initWithXXX 方法* Swift: (xxx:)//OC ://UIView *view = [UIView alloc]init];//Swift :let view = UIView(frame: CGRect(x: 0, y: 0,...
分类:编程语言   时间:2016-01-25 01:26:30    阅读次数:275
oc 可变參数传递
- (id)initWithFrame:(CGRect)frame delegate:(id)delegate focusImageItems:(SGFocusImageItem *)firstItem, ...{ self = [super initWithFrame:frame]; ...
分类:其他好文   时间:2016-01-24 15:41:32    阅读次数:119
ios绘图之quarz2d
1 - (void)drawRect:(CGRect)rect 2 { 3 // 1.获取上下文 4 CGContextRef ctx = UIGraphicsGetCurrentContext(); 5 6 // 2.创建路径(一个path就代表一条路径) 7 ...
分类:移动开发   时间:2016-01-23 13:00:09    阅读次数:149
583条   上一页 1 ... 14 15 16 17 18 ... 59 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!