- (IBAction)changePassWord:(id)sender{ CGSize size = [[UIScreen mainScreen] bounds].size; //增加半透明层 bgView = [[UIView alloc]initWithFrame:self.view...
分类:
其他好文 时间:
2014-07-19 16:31:10
阅读次数:
227
UIButton *downButtonOne = [[UIButton alloc]initWithFrame:CGRectMake(0, 0, self.bounds.size.width, 50)]; [downButtonOne setImage:[UIImage imageNamed...
分类:
其他好文 时间:
2014-07-18 18:34:16
阅读次数:
191
iOS设备横屏时,视图的frame保持不变,但bounds会发生变化。...
分类:
移动开发 时间:
2014-07-18 15:12:25
阅读次数:
319
一个视图可以有多个子视图, 但是一个子视图只能有一个父视图, 同为子视图, 后添加的会显示在上方.setHidden视图隐藏属性, 默认值是NO, 隐藏父视图, 子视图会受到影响.clipsToBounds, 裁掉子视图超过父视图的部分.bounds, 是相对自己的坐标系, 修改视图的bounds自...
分类:
其他好文 时间:
2014-07-16 17:52:54
阅读次数:
232
UIPageControl *pageControl = [[UIPageControl alloc] init]; pageControl.center = CGPointMake(w * 0.5, h - 20); pageControl.bounds = CGRectMa...
分类:
其他好文 时间:
2014-07-16 17:05:04
阅读次数:
193
gcc 提供了大量的警告选项,对代码中可能存在的问题提出警 告,通常可以使用-Wall来开启以下警告: -Waddress -Warray-bounds (only with -O2) -Wc++0x-compat -Wchar-subscripts -Wimplicit-int -Wi...
分类:
其他好文 时间:
2014-07-13 19:28:03
阅读次数:
208
bounds坐标:自己定义的坐标系统,setbound指明了本视图左上角在该坐标系统中的坐标, 默认值(0,0)frame坐标: 子视图左上角在父视图坐标系统(bounds坐标系统)中的坐标,默认值(0,0)子视图实际位置=父视图实际位置-父视图bounds坐标+子视图frame坐标一、...
分类:
移动开发 时间:
2014-07-01 20:02:59
阅读次数:
285
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view.
self.mapView = [[MKMapView alloc] initWithFrame:self.view.bounds];
self.mapView.mapType =...
分类:
其他好文 时间:
2014-07-01 06:17:34
阅读次数:
758
建一个类如,在Contans.swift中import UIKitlet kMAIN_SIZE = UIScreen.mainScreen().bounds在其他地方直接用比如在MyTabbarViewController.swift中var bgView = UIView(frame:CGRect...
分类:
其他好文 时间:
2014-07-01 00:06:49
阅读次数:
172
要在改变图形大小的时候改变overlay的位置,那肯定就要对重置图形大小的方法进行改造了。下面是源文件中的代码
mxGraph.prototype.resizeCells = function(cells, bounds) {
this.model.beginUpdate();
try {
this.cellsResized(cells, bounds);...
分类:
其他好文 时间:
2014-06-30 07:34:11
阅读次数:
298