码迷,mamicode.com
首页 >  
搜索关键字:cgrect    ( 583个结果
ios 图片裁剪
/*** 图片裁剪裁剪原理:先在控制器上确定一个区域,然后再把要把需要裁剪的图片该区域上面,超出区域的图片都不显示** @param rect*/-(void) drawRect:(CGRect)rect{ CGContextRef ref = UIGraphicsGetCurrentContext...
分类:移动开发   时间:2014-08-16 19:43:50    阅读次数:270
ios 获取屏幕的属性和宽度
1.app尺寸,去掉状态栏 CGRect r = [ UIScreen mainScreen ].applicationFrame; r=0,20,320,460 另外:self.view.bounds.size 2.屏幕尺寸 CGRect rx = [ UIScreen mainScreen ].bounds; r=0,0,320,480 3.状态栏尺寸 C...
分类:移动开发   时间:2014-08-14 23:54:06    阅读次数:267
CGGeometry.h详解
本文转载至:http://blog.csdn.net/chengyingzhilian/article/details/7894195这些是在CGGeometry.h里的CGPoint、CGSize、CGRect、CGRectEdge实际上都是结构体struct CGPoint { CGFloat ...
分类:其他好文   时间:2014-08-13 14:46:36    阅读次数:224
iOS中中UIView头文件详细解析
@interface UIView : UIResponder/*** 通过一个frame来初始化一个UI控件*/- (id)initWithFrame:(CGRect)frame;// YES:能够跟用户进行交互@property(nonatomic,getter=isUserInteractio...
分类:移动开发   时间:2014-08-13 00:45:14    阅读次数:276
ios 页面滑入滑出
从左边滑进CGRect r1,r2; r1 = app.testview.view.frame; r2 = self.view.frame; [app.testview.view setFrame:CGRectMake(320, r1.origin.y,r1.size....
分类:移动开发   时间:2014-08-07 18:25:20    阅读次数:228
UIDatePicker控件
用处:选择日期或时间 当选择新的日期或时间的时候,值改变事件会被触发-(void)viewDidLoad{ CGRect frame = CGRectMake(20,20,320,100); self.datePicker = [[UIDatePicker alloc]initWithFrame.....
分类:其他好文   时间:2014-08-07 18:22:20    阅读次数:184
UISlider控件
用处:在一个连续的区间中选择一个值-(void)viewDidLoad{ [super viewDidLoad]; CGRect frame = CGRectMake(20,20,200,0); self.slider = [[UISlider alloc]initWithFrame:fra...
分类:其他好文   时间:2014-08-06 18:31:51    阅读次数:235
UISwitch控件
用处:开关空间,用于处理两种状态-(void)viewDidLoad{ [super viewDidLoad]; CGRect frame = CGRectMake(20,20,0,0); self.switch = [[UISwitch alloc]initWithFrame:frame]; //...
分类:其他好文   时间:2014-08-06 18:23:01    阅读次数:213
UITextField控件
用处:输入控件-(void)viewDidLoad{ [super viewDidLoad];//设置大小CGRect frame = CGRectMake(20,20,150,40);//实例化UITextFieldself.tf = [[UITextField alloc]initWithFra...
分类:其他好文   时间:2014-08-06 17:16:41    阅读次数:213
UIKit 小结
nsobject--uiresponder--uiviewuiresponder类定义了一些操作uiview有三个属性: frame, bounds, centercenter用于改变控件位置, bounds 用于改变控件大小UILabel控件:类似于c#的label。CGRect frame = ...
分类:其他好文   时间:2014-08-06 14:16:01    阅读次数:196
583条   上一页 1 ... 52 53 54 55 56 ... 59 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!