国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

李冬強-用代碼寫view

2019-11-14 20:17:05
字體:
來源:轉載
供稿:網友

主要代碼

//

//  ViewController.m

//  創建view-709

//

//  Created by apple on 14-7-9.

//  Copyright (c) 2014年 戴維營教育. All rights reserved.

//

 

#import "ViewController.h"

 

@interface ViewController ()

            

 

@end

 

@implementation ViewController

            

- (void)viewDidLoad {

    [super viewDidLoad];

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

//    CGPoint origin={0,0};

//    CGSize size={50,50};

//    CGRect rect={origin,size};

    

    UIView *yellView=[[UIView alloc]init];

    yellView.frame=CGRectMake(0, 0, 200, 200);

    yellView.backgroundColor=[UIColor yellowColor];

    [self.view addSubview:yellView];

    

    

    UIView *whiteView=[[UIView alloc]init];

    whiteView.frame=CGRectMake(0, 0, 100, 100);

    whiteView.backgroundColor=[UIColor grayColor];

    [yellView addSubview:whiteView];

    

    UIView *redView=[[UIView alloc]init];

    redView.frame=CGRectMake(100, 100, 100, 100);

    redView.backgroundColor=[UIColor redColor];

    [self.view addSubview:redView];

}

 

- (void)didReceiveMemoryWarning {

    [super didReceiveMemoryWarning];

    // Dispose of any resources that can be recreated.

}

 

@end

 


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 怀仁县| 枣阳市| 阿拉尔市| 锦屏县| 伽师县| 黎城县| 林周县| 库车县| 乾安县| 利津县| 弋阳县| 东乌珠穆沁旗| 依兰县| 乌海市| 临城县| 盘锦市| 金堂县| 广安市| 武城县| 左云县| 曲水县| 康保县| 禹城市| 遂宁市| 剑河县| 西盟| 博爱县| 千阳县| 平遥县| 惠安县| 宝兴县| 商城县| 德江县| 砚山县| 霍城县| 博乐市| 沈丘县| 长治市| 偃师市| 北宁市| 独山县|