码迷,mamicode.com
首页 > 其他好文 > 详细

高震宇作业

时间:2014-07-11 09:46:07      阅读:200      评论:0      收藏:0      [点我收藏+]

标签:blog   http   color   2014   io   代码   

实现部分代码关于view的德国国旗实现bubuko.com,布布扣

 

 

@implementation ViewController

            

- (void)viewDidLoad {

    [super viewDidLoad];

    // Do any additional setup after loading the view, typically from a nib.

    

    UIView *blackView = [[UIView alloc] initWithFrame:CGRectMake(10, 50, 300, 50)];

    blackView.backgroundColor = [UIColor blackColor];

    [self.view addSubview:blackView];

    

    UIView *redView = [[UIView alloc] initWithFrame:CGRectMake(10, 100, 300, 50)];

    redView.backgroundColor = [UIColor redColor];

    [self.view addSubview:redView];

    

    UIView *yellowView = [[UIView alloc] initWithFrame:CGRectMake(10, 150, 300, 50)];

    yellowView.backgroundColor = [UIColor yellowColor];

    [self.view addSubview:yellowView];

    

    

}

高震宇作业,布布扣,bubuko.com

高震宇作业

标签:blog   http   color   2014   io   代码   

原文地址:http://www.cnblogs.com/gzy0724/p/3834485.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!