码迷,mamicode.com
首页 >  
搜索关键字:bounds    ( 955个结果
monkey如何通过uiautomatorviewer的bounds坐标点击控件
在使用monkeyrunner的时候会经常遇到元素通过坐标定位的问题。下面是解决这类问题的其中一种办法: 例如:一个button的bounds坐标是[361,744][649,844],做如下操作 1. 通过uiautomatorviewer获取,如图:(此图只...
分类:其他好文   时间:2015-04-27 13:24:47    阅读次数:1526
使附着的摄像机变为可拖动的(DraggableCamera)
1.2.(1)Root For Bounds:这是一个重要的设置项:相机拖动的范围边界(2)Scale:可以理解为相机被拖动时在X和Y上的速度(3)ScrollWheelFactor:鼠标滚轮的影响系数(4)Drag Effect为了保证相机完全不被拖到边界以外,我们一般选择None,也就是没有拖动...
分类:其他好文   时间:2015-04-27 09:36:03    阅读次数:132
代码构建视图
一下代码全部在didFinishLaunchingWithOptions 初始化事件: //设置window窗体颜色 self.window = UIWindow(frame: UIScreen.mainScreen().bounds); self.window?.backgrou...
分类:其他好文   时间:2015-04-24 22:29:34    阅读次数:180
UIKit - UIButton 按钮操作
UIButton 按钮操作/* 一 UIVIew 常见属性 1.frame 位置和尺寸(以父控件的左上角为原点(0,0)) 2.center 中点 (以父控件的左上角为原点(0,0)) 3.bounds 位置和尺寸(以自己的左上角为原点 (0,0)) 4.transform 形变属性(缩放,旋转) 5.backgroundColor 背景颜色 6.tag 标识(父控件可以根据这个标识找...
分类:其他好文   时间:2015-04-24 10:39:02    阅读次数:167
iOS Layer CABasicAnimation
CALayer *layer = [CALayer layer]; layer.delegate = self; layer.bounds = CGRectMake(0, 0, 100, 100); layer.position = CGPointMake(100, 100); layer...
分类:移动开发   时间:2015-04-23 19:29:40    阅读次数:159
UITableView的一些事1
方法1:_tableview = [[UITableView alloc]initWithFrame:CGRectMake(0, 0,self.view.bounds.size.width,self.view.bounds.size.height)style:UITableViewStylePlai...
分类:其他好文   时间:2015-04-23 17:13:45    阅读次数:111
IOS中的动画——Core Animation
一、基础动画 CABasicAnimation 1 //初始化方式 CABasicAnimation * cabase=[CABasicAnimation animation]; 2 //通过keyPath设置需要实现动画的属性,此处设为bounds cabase.keyPath=@"bounds"; 3 //通过toValue设置动画结束时候的状态 cabase.t...
分类:移动开发   时间:2015-04-22 18:25:11    阅读次数:170
UITableView的一些常用设置和代理方法
- (void)viewDidLoad { [super viewDidLoad]; tableview = [[UITableView alloc]initWithFrame:CGRectMake(0, 0,self.view.bounds.size.width,self.view.boun...
分类:其他好文   时间:2015-04-22 11:09:55    阅读次数:222
【HTML5 Canvas】计算元件/显示对象经过Matrix变换后在上级/舞台上的bounds(边界矩形rect)
如上图所示,这样的一个简单矩形,边界矩形是(x:-28, y:-35, width:152, height:128),这是在这个元件/显示对象自己的坐标空间的范围。那么把这个放到父元件(舞台)中,再做一定变换。如下图所示,白色区域就是舞台,蓝色矩形中的白色十字架标记,就是世界坐标的(0,0)点。 ....
分类:Web程序   时间:2015-04-21 19:57:37    阅读次数:153
tableview 重用nib cell
#import "ViewController.h"#import "NewsTableViewCell.h"#define UISCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.height)#define UISCREEN_WIDTH ([UI.....
分类:其他好文   时间:2015-04-21 12:48:52    阅读次数:114
955条   上一页 1 ... 74 75 76 77 78 ... 96 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!