摘要: 首先,对于frame 大家都很熟悉,是当前view ,相对于其父视图view 的坐标,例如: [objc] view plaincopyprint?在CODE上查看代码片派生到我的代码片 UIView *view1 = [[UIView alloc] initWithFrame:CGRectMake(10, 60, 300, 300)]; view1.backgroundColor = [UIColor redColor]; [self.view addSubview: view1]; view1 的坐标就是针对self.view 所设置的。其中view1 距 self.view 的左侧边缘是10px,距self.view 的顶部 60px。 阅读全文
posted @ 2013-11-26 16:50 苹果吧 阅读(1644) 评论(0) 推荐(0) 编辑