PDA&Mobile
아이폰 앱 개발 팁(10) : Head First iPhone Development #1
MissFlash
2010. 3. 18. 10:46
* 본 포스트는 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