zoukankan      html  css  js  c++  java
  • 李冬强-用代码写view

    主要代码

    //

    //  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

  • 相关阅读:
    java实现可安装的exe程序
    WINDOWS上使用BAT定期执行备份操作
    Freemaker基于word模板动态导出
    网页静态化Freemarker
    Linux下Mysql每天自动备份
    搭建cas单点登录服务器
    GridView多列排序
    python学习-发送邮件(smtp)
    python3+selenium3学习——发送邮件
    redis相关-基础语法
  • 原文地址:https://www.cnblogs.com/lidongq/p/3834202.html
Copyright © 2011-2022 走看看