일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
- Xcode
- 얻는법
- loop
- 앱스토어
- 신도림
- Check
- swift
- UIView
- 샘플
- Example
- swift3
- GCD
- 스마트폰
- IOS
- 보라카이
- setting
- 해몽
- 포켓몬 GO
- 공략
- UITableView
- error
- push
- LG유플러스
- 포켓볼
- 페이백
- afterdelay
- simulator
- 아이폰7
- 신도림 테크노마트
- Bitcode
- 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..