《每天3分钟学开发》ios开发之UI基础:UI 第三天!
2015-12-19 16:52
405 查看
1.添加第一个格子
1.1创建一个视图
UIView *redView = [[UIView alloc]init];
1.2设置frame
redView.frame = CGRectMake(40, 30, 100, 120);
1.3设置颜色
redView.backgroundColor = [UIColor redColor];
1.4添加
[self.view addSubview:redView];
1.1创建一个视图
UIView *redView = [[UIView alloc]init];
1.2设置frame
redView.frame = CGRectMake(40, 30, 100, 120);
1.3设置颜色
redView.backgroundColor = [UIColor redColor];
1.4添加
[self.view addSubview:redView];
相关文章推荐
- 借助mosquitto“实时”远程监控服务器数据库运行状态
- 《每天3分钟学开发》ios开发之UI基础:UI 第二天!
- 《每天3分钟学开发》ios开发之UI基础:UI 第一天!
- Android-Bluetooth
- 232. Implement Queue using Stacks,225. Implement Stack using Queues
- Hibernate之Query.uniqueResult()结果为数值的注意事项
- 代码手写UI,xib和StoryBoard间的博弈,以及Interface Builder的一些小技巧
- ios控件-UILabel
- AutoLayout处理UITableView动态高度
- Arduino - IIC SCANNER
- 【iOS学习笔记 15-12-19】自定义cell侧滑按钮(UIButton)
- UIWindow和UIView的简单使用
- 黑马程序员_Java基础-GUI
- iOS学习之 iOS9新特性UIStackView
- dequeueReusableCellWithIdentifier: forIndexPath: 获取cell
- 分享一个使用NSIS制作安装包的UI插件
- 13、提升Android UI流畅度的建议
- 用数据库连接池c3p0来连接数据库,用queryrunner来操作
- [深入浅出Windows 10]QuickCharts图表控件库解析
- UILabel的一些整理