码迷,mamicode.com
首页 >  
搜索关键字:bounds    ( 955个结果
iOS简单动画
知识架构 layer的基本概念 其实UIView之所以能显示在屏幕上,完全是因为它内部的一个图层,在创建UIView对象时,UIView内部会自动创建一个图层(CALyer对象),通过UIView的layer属性可以访问这个层。 基本属性 Bounds;position;frame;backgrou ...
分类:移动开发   时间:2016-05-16 19:32:12    阅读次数:235
swift 代码添加lable
let lable1 = UILabel(frame: CGRect(x: CGFloat(self.view.bounds.width/2-20), y: CGFloat(history.frame.origin.x + 12), width: 390.0, height: 24.0)) labl ...
分类:编程语言   时间:2016-05-13 10:28:41    阅读次数:137
画虚线
//画虚线 CAShapeLayer *shapeLayer = [CAShapeLayer layer]; [shapeLayer setBounds:self.backView.bounds]; [shapeLayer setPosition:self.backView.center]; [sh ...
分类:其他好文   时间:2016-05-13 08:14:11    阅读次数:125
iOS指定程序启动后初始的ViewController
-(BOOL)application:(UIApplication*)applicationdidFinishLaunchingWithOptions:(NSDictionary*)launchOptions{//Overridepointforcustomizationafterapplicationlaunch.self.window=[[UIWindowalloc]initWithFrame:[[UIScreenmainScreen]bounds]];UIStoryboard*storyboard=[U..
分类:移动开发   时间:2016-05-13 05:18:58    阅读次数:263
IOS开发:截取当前视图
这个是我自己在写一个小实验时,用到的功能。被我独立抽取出来+(UIImage *)capturImageWithUIView:(UIView *)view{ //开启位图上下文 UIGraphicsBeginImageContext(view.bounds.size); //获取当前位图 CGContextRef ctx = UIGraphicsGetCurrentCo...
分类:移动开发   时间:2016-05-13 03:29:08    阅读次数:195
iOS 成长之路之pch文件
pch文件的导入 :$(SRCROOT)/项目名/pch文件名 pch文件 常用宏定义 屏幕大小 #define ViewWith [UIScreen mainScreen].bounds.size.width #define ViewHight [UIScreen mainScreen].boun ...
分类:移动开发   时间:2016-05-11 15:10:01    阅读次数:142
IOS开发基础篇--手写控件,frame,center和bounds属性
iOS开发UI基础—手写控件,frame,center和bounds属性 一、手写控件 1.手写控件的步骤 (1)使用相应的控件类创建控件对象 (2)设置该控件的各种属性 (3)添加控件到视图中 (4)如果是button等控件,还需考虑控件的单击事件等 (5)注意:View Contollor和vi ...
分类:移动开发   时间:2016-05-06 20:14:38    阅读次数:257
frame、bounds表示大小和位置的属性以及center、position、anchorPosition
在iOS开发开发过程中经常会用到界面元素的frame、bounds表示大小和位置的属性以及center、position、anchorPosition等单纯表示位置的属性。这些属性究竟什么含义?彼此间又什么关系呢?下面就来浅谈一番。 首先来说说frame和bounds。 frame:描述当前界面元素 ...
分类:其他好文   时间:2016-04-28 19:48:36    阅读次数:739
换取头像
#ifndef Prefix_pch #define Prefix_pch //获取屏幕高宽 #define Main_Height [[UIScreen mainScreen] bounds].size.height #define Main_Width [[UIScreen mainScreen ...
分类:其他好文   时间:2016-04-27 20:46:10    阅读次数:184
IOS开发基础
http://blog.csdn.net/wokenshin/article/details/50292253 1、修改UI大小 2、设置颜色 3、禁止横屏 4、点击空白处隐藏键盘 5、弹出键盘时,后面的UI整体上移 6、我的工具类[宏定义等] 1、修改UI大小可以通过frame或bounds属性来 ...
分类:移动开发   时间:2016-04-27 12:21:39    阅读次数:192
955条   上一页 1 ... 42 43 44 45 46 ... 96 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!