일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- Bitcode
- simulator
- swift3
- 얻는법
- swift
- Xcode
- 샘플
- push
- error
- 신도림
- LG유플러스
- 신도림 테크노마트
- Example
- GCD
- 포켓몬 GO
- setting
- 보라카이
- UIView
- 스마트폰
- 페이백
- 아이폰7
- 해몽
- IOS
- UITableView
- 공략
- Check
- 포켓볼
- loop
- 앱스토어
- afterdelay
- Today
- Total
목록UIView (2)
도래울
UIView 좌표에 대한 기초 내용을 정리해보자 . 기초가 튼튼해야 응용도 가능하다.CGPoint 와 CGRectUIView 는 사각형으로 기준점과 너비,높이로 위치와 크기가 결정된다. 기준점은 사각형의 좌측 꼭지점이다.위치와 크기를 표현하는데 CGPoint 와 CGRect 구조체가 사용된다.CGPoint 는 (x,y) 값을 통해 좌표를 나타내며, CGRect 은 (x, y, width, height ) 값을 통해 위치와 크기를 표현하다.편의상 CGRect 은 x, y, width, height 로 표현하였다. 실제 CGRect 은 CGPoint 와 CGSize 를 갖는다. CGSize 는 width와 height 를 갖는 구조체다.frame 과 boundsUIView는 특정 UIView (UIWindo..
UIView In iOS, UIView class provides rectangular area in the view, this view can render user defined content on the iPhone screen. Here is the very basic example for creating UIView programmatically. 1 2 3 4 5 var DynamicView=UIView(frame: CGRectMake(100, 200, 100, 100)) DynamicView.backgroundColor=UIColor.greenColor() DynamicView.layer.cornerRadius=25 DynamicView.layer.borderWidth=2 self.view.a..