Help us understand the problem. What is going on with this article?

[objc][memo] さっくと、四角いUIView 丸いUIViewを作る。

More than 5 years have passed since last update.


// 四角のUIView
UIView * square = [[UIView alloc] initWithFrame:CGRectMake(35,55,10,10)];
square.backgroundColor = [UIColor blueColor] ;
[self.view addSubview:square];

// 円のUIView
float r = 12.0f;
float x = 5.0f;
float y = 5.0f;
UIView *circle = [[UIView alloc] initWithFrame:CGRectMake(x,y,r,r)];
circle.alpha = 0.5;
circle.layer.cornerRadius = r*0.5;
circle.backgroundColor = [UIColor blueColor];
[self.view addSubview:circle];

itoz 最近はnuxt。
Webサイト構築 から実空間でセンサー系デジタルエンターテイメントまで幅広く制作するデジタル・クリエイティブスタジオ
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away