본문 바로가기
프로그래밍 놀이터/iOS

[ios] xib 파일을 rendering 하는 custom view 만들기

by 돼지왕 왕돼지 2017. 11. 11.
반응형

 [ios] xib 파일을 rendering 하는 custom view 만들기


참조 : https://developer.apple.com/library/ios/recipes/xcode_help-IB_objects_media/Chapters/CreatingaLiveViewofaCustomObject.html

@interface, assign, custom class, header, IB_DESIGNABLE, Interface builder, subclass, UIView, View, XIB, [ios] xib 파일을 rendering 하는 custom view 만들기


1. UIView 의 subclass 를 만든다.

2. header 의 @interface 선언 위에 IB_DESIGNABLE 을 붙인다. // interface builder 가 해당 view 를 그린다.

3. xib 파일을 만들어 view 를 그린다.

4. Custom Class 에 위에서 생성한 view 를 assign 해준다.




반응형

댓글