* 본 포스트는 Blog.MissFlash.com에서 작성한 것으로, 원문 저작자의 동의없이 마음대로 퍼가실 수 없습니다. 포스트의 내용이 마음에 드시면 링크를 이용해주시면 감사하겠습니다.
> Head First iPhone Development #1
Chapter 1. getting started - Going mobile
iDecideViewController.h#import <UIKit/UIKit.h>
@interface iDecideViewController:UIViewController
{
IBOutlet UILabel *decisionText;
}
@property (retain, nonatomic) UILabel *decisionText;
- (IBAction)buttonPressed:(id)sender;
@end
(* means the type is a pointer to a UILabel.)
iDecideViewController.m
#import "iDecideViewController.h"
@implementation iDecideViewController
@synthesize decisionText;
- (IBAction)buttonPressed:(id)sender
{
decisionText.text = @"Go for it!";
}
...
- (void)dealloc
{
[decisionText release];
[super dealloc];
}
File's Owner : the class file that will load nib files
'PDA&Mobile' 카테고리의 다른 글
아이폰 앱 개발 팁(12) : Head First iPhone Development #3 (1) | 2010.03.30 |
---|---|
아이폰 앱 개발 팁(11) : Head First iPhone Development #2 (4) | 2010.03.23 |
아이폰 앱 개발 팁(10) : Head First iPhone Development #1 (0) | 2010.03.18 |
아이폰 앱 개발 팁(9) : Stanford Lecture #10 (0) | 2010.02.16 |
아이폰 앱 개발 팁(8) : Stanford Lecture #9 (0) | 2010.02.12 |
아이폰 앱 개발 팁(7) : Stanford Lecture #8 (0) | 2010.02.08 |
이 글은 새로운 정보가 추가될 때마다 업데이트됩니다. 추천으로 아래 숫자에 1을 더해보세요. :)
RSS구독을 하시면 포스트를 배달해 드립니다. ▷ 한RSS 구독하기, 구글리더 구독하기
댓글을 달아 주세요