导入相关配置#import #define kScreenHight [UIScreen mainScreen].bounds.size.height#define kScreenWidth [UIScreen mainScreen].bounds.size.width@interface ...
分类:
移动开发 时间:
2015-01-05 16:12:21
阅读次数:
283
首先引入框架:QuartzCore.framework在头文件声明:CALayer*logoLayer{//界限CABasicAnimation*boundsAnimation = [CABasicAnimationanimationWithKeyPath:@"bounds"];boundsAnim...
分类:
移动开发 时间:
2015-01-04 22:52:55
阅读次数:
601
1.初始化
UIScrollView *scrollView = [[UIScrollView
alloc]
init];
2.设置尺寸
(1)按照屏幕尺寸
scrollView.frame =
self.view.bounds;
(2)自定义尺寸
scrollView.frame = CGRectMake(0, 0, self.view.frame.size.wi...
分类:
其他好文 时间:
2015-01-04 17:15:18
阅读次数:
276
1.scala中的Int): Unit ={ }}View Code其中的Function1的定义如下2.与view bounds一样context bounds(上下文界定)也是隐式参数的语法糖object Test { def main(args: Array[String]) { } ...
分类:
其他好文 时间:
2014-12-30 23:17:04
阅读次数:
744
CGRect?screenFrame?=?[[UIScreen?mainScreen]?bounds];
????webView?=?[[UIWebView?alloc]?initWithFrame:CGRectMake(0,?38.0,?screenFrame.size.width,?(screenFrame.size.height-122.0))];
...
分类:
编程语言 时间:
2014-12-30 17:23:23
阅读次数:
199
1 基本用法1、实例化:UIWebView *webView = [[UIWebView alloc] initWithFrame:self.view.window.bounds];2、配置参数:delegate、scalesPageToFit等3、加载请求:[webView loadRequest...
分类:
移动开发 时间:
2014-12-28 19:31:53
阅读次数:
442
先看到下面的代码你肯定就明白了一些:-(CGRect)frame{ return CGRectMake(self.frame.origin.x,self.frame.origin.y,self.frame.size.width,self.frame.size.height);}-(CGRect)b....
分类:
其他好文 时间:
2014-12-27 12:40:11
阅读次数:
125
CAlaye的动画//创建CAlayer动画CABasicAnimation*animation=[CABasicAnimationanimationWithKeyPath:@"bounds.size"];//设置初始大小[animationsetFromValue:[NSValue valueWi...
分类:
移动开发 时间:
2014-12-25 20:20:19
阅读次数:
217
原文 http://www.cnblogs.com/smileEvday/p/iOS8.html 1、UIWindow的boundsiOS 7之前Window的bounds不会随着方向而变化,但是到了iOS 8以后,随着设备方向的旋转,window.bounds.size.width和window....
分类:
移动开发 时间:
2014-12-24 21:25:35
阅读次数:
204
一 UIVIew 常见属性1.frame 位置和尺寸(以父控件的左上角为原点(0,0))2.center 中点 (以父控件的左上角为原点(0,0))3.bounds 位置和尺寸(以自己的左上角为原点 (0,0))4.transform 形变属性 CGAffineTransform(Make)Scal...
分类:
其他好文 时间:
2014-12-23 22:24:28
阅读次数:
241