码迷,mamicode.com
首页 >  
搜索关键字:bounds    ( 955个结果
《view programming guide for iOS 》之可以使用动画效果的属性
frame—Use this to animate position and size changes for the view. ,框架,可以视图动态改变大小和位置 bounds—Use this to animate changes to the size of the view. ,可以改变视 ...
分类:移动开发   时间:2016-07-04 13:46:47    阅读次数:153
iOS之label添加下划线
UILabel*linkLabel=[[UILabelalloc]init];linkLabel.frame=CGRectMake(10,introduceLabel.frame.origin.y+introduceLabel.frame.size.height+10,[UIScreenmainScreen].bounds.size.width-20,20);NSMutableAttributedString*content=[[NSMutableAttributedStringalloc]initWithS..
分类:移动开发   时间:2016-07-04 12:05:31    阅读次数:336
《Programming with Objective-C》的常规规定
1、每个类的类名在软件中必须唯一的(包括在框架、bounds中),类名有多个单词的时候就是用驼峰方法。 Prefix Framework NS Foundation (OS X and iOS) and Application Kit (OS X) UI UIKit (iOS) AB Address ...
分类:其他好文   时间:2016-07-03 21:40:15    阅读次数:144
适配iOS 7 和iOS 8屏幕尺寸宏定义
#define IS_IOS8_0 ([[[UIDevice currentDevice] systemVersion] floatValue] < 8.0) #define WIDTH [UIScreen mainScreen].bounds.size.width #define HEIGHT [ ...
分类:移动开发   时间:2016-06-30 18:17:10    阅读次数:156
iOS开发学习-给圆形图片添加边框
imageView.layer.cornerRadius = imageView.bounds.size.width * 0.5;// 设置圆角刚好是自身宽度的一半,就刚好是圆形 imageView.layer.masksToBounds = YES; imageView.layer.borderW ...
分类:移动开发   时间:2016-06-29 12:49:49    阅读次数:169
IOS之frame和bounds区别
用最简单的语言来解释就是:setFrame和setBounds都是为了把子view加载到父view上去,但设置的参数坐标系不同,setFrame是该view在父view坐标系统中的位置和大小,setBounds是该view在本地坐标系统中的位置和大小。 下面是盗来的资料: 再来看张图就明白了, fr ...
分类:移动开发   时间:2016-06-27 11:59:41    阅读次数:177
iOS动画效果和实现
动画效果提供了状态或页面转换时流畅的用户体验,在iOS系统中,咱们不需要自己编写绘制动画的代码,Core Animation提供了丰富的api来实现你需要的动画效果。 UIKit只用UIView来展示动画,动画支持UIView下面的这些属性改变: frame bounds center transf ...
分类:移动开发   时间:2016-06-17 09:43:06    阅读次数:284
iOS常用define宏定义
1. 屏幕宽高及常用尺寸 #define SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width)#define SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.height) #define Na ...
分类:移动开发   时间:2016-06-16 21:36:59    阅读次数:156
iOS开发UI篇—CAlayer(创建图层)
iOS开发UI篇—CAlayer(创建图层) 一、添加一个图层 添加图层的步骤: 1.创建layer 2.设置layer的属性(设置了颜色,bounds才能显示出来) 3.将layer添加到界面上(控制器view的layer上) 1 // 2 // YYViewController.m 3 // 0 ...
分类:移动开发   时间:2016-06-16 20:02:23    阅读次数:385
ios开发APP必须要了解的基本配置
1,配置开发版本AdHoc开发版,AppStore正式版2,oc的宏转swift//常量=》ObjectC宏letLoadingTip="加载中..."letiOS8:Float=8.0letScreenHeight=UIScreen.mainScreen().bounds.size.heightletPanWidth:CGFloat=1003,日志输出一,配置二,杭州APP开发定义方法funcFxLog(message:..
分类:移动开发   时间:2016-06-14 16:15:37    阅读次数:269
955条   上一页 1 ... 39 40 41 42 43 ... 96 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!