Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Derived Data
- ccbi
- xib
- box2d
- 태그를 입력해 주세요.
- CCLOG
- storyboard
- release
- LLVM
- Debug
- cocos2d-x
- SBTarget
- 멀티태스킹
- NSHomeDirectory
- Default-568h.png
- .svn
- /var/mobile/Applications
- landscape
- Undefined symbols for architecture armv7s
- UIView
- Xcode
- scale
Archives
- Today
- Total
목록xib (1)
standwally
커스텀 UIView에 xib 사용하기
별도의 커스텀 UIView를 xib와 함께 사용하고 싶지만, Xcode에서 새로운 파일을 만들면 UIViewController는 기본적으로 xib 사용여부를 선택할 수 있지만, UIView는 그렇지 못하다. CustumView.xib를 만들어 보자. UIView를 상속받는 CustumView 클래스 파일을 새로 만들고, 초기화하는 부분을 아래와 같이 수정해준다. - (id)init { self = [super init]; if (self) { // Initialization code NSArray *nibs = [[NSBundle mainBundle] loadNibNamed:@"CustumView" owner:self options:nil]; [self release]; // 메모리릭을 방지하기 위해 기..
프로그래밍/iOS
2013. 3. 12. 17:50