1. 헤더 파일 작성
@interface FirstConnectViewController : UIViewController {
UILabel* label1;
}
@property(nonatomic, retain) IBOutlet UILabel *label1;
2. 구현 파일 작성
@synthesize label1;
3. File's Owner에서 control누른채로 레이블 컨트롤로 끌고 가서 연결
4. 이벤트 작성
헤더
-(IBAction) click:(id)sender;
구현
-(IBAction) click:(id) sender
{
[label1 setText:@"Hello iPhone"];
}
5. 이벤트 연결
(1) 버튼 컨트롤에서 control누른채로 File Owner로 끌고감
(2) Connection Inspector에서 골라서 File Owner로 끌고 감
'개발 > Client Side' 카테고리의 다른 글
VC6 -> VS 2005 변환 후 wchar_t 문제 (0) | 2010.08.31 |
---|---|
Visual Studio 2008에서 IA64(Itanium) 빌드하려면 (0) | 2010.08.13 |
[아이폰 개발] 도움말 보기 (0) | 2010.06.10 |
vbscript로 COM+ 실행 계정 변경 (0) | 2010.05.04 |
Visual Studio 6 MFC 탭 순서 변경 (0) | 2009.12.22 |