티스토리 뷰
코드측에서 =
{프로젝트명}AppDelegate.h
에 코드로 선언
IBOutlet UIView *view1;
IBOutlet UIView *view2;
{프로젝트명}AppDelegate.m
에 코드 입력
- (void)dealloc
{
[view1 release];
[view2 release];
[super dealloc];
{프로젝트명}AppDelegate.h
에 코드로 선언
IBOutlet UIView *view1;
IBOutlet UIView *view2;
{프로젝트명}AppDelegate.m
에 코드 입력
- (void)dealloc
{
[view1 release];
[view2 release];
[super dealloc];
}
- (BOOL) application: ... didFinishLunchingWithOptions ... {
[window addSubView:view1];
......
return YES;
}
비쥬얼측에서 =
IB (인터페이스빌더)에서 File's owner 박스 하위
Window 아래에
View (컨트롤러 아님) 드래그해서 2개 추가
----------------------------
File's Owner
File's Responder
{프로젝트명} app delegate
Window
View
View
----------------------------
{프로젝트명} app delegate를 Control + 드래그 하여
View들에 드롭하여 나오는 메뉴에서 연결할 IBOutlet 선언 선택.
- (BOOL) application: ... didFinishLunchingWithOptions ... {
[window addSubView:view1];
......
return YES;
}
비쥬얼측에서 =
IB (인터페이스빌더)에서 File's owner 박스 하위
Window 아래에
View (컨트롤러 아님) 드래그해서 2개 추가
----------------------------
File's Owner
File's Responder
{프로젝트명} app delegate
Window
View
View
----------------------------
{프로젝트명} app delegate를 Control + 드래그 하여
View들에 드롭하여 나오는 메뉴에서 연결할 IBOutlet 선언 선택.
'모바일 > iOS' 카테고리의 다른 글
뷰(xib) 모달창으로 띄우기 (0) | 2012.01.15 |
---|---|
XCode4: Interface Builder에서 UITabBarController 에 UINavigationController 올리기 (0) | 2012.01.15 |
소스에서 인터페이스빌더에 올린 오브젝트들 참조하여 컨트롤 (0) | 2012.01.08 |
iOS 레퍼런스 접근시 You do not have access...membership 메세지 (0) | 2012.01.05 |
아이폰 웹사이트 제작 리소스 (0) | 2010.07.23 |
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- macos
- nginx
- centos
- javascript
- nodejs
- Wordpress
- git
- iphone
- sencha touch
- 안드로이드
- classic asp
- laravel
- Linux
- IOS
- CSS
- 워드프레스
- Mac
- PHP
- Debug
- iis
- ASP
- API
- Prototype
- JSON
- Docker
- 한글
- JQuery
- mssql
- Android
- IE
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함