忍者ブログ
2024 / 09
≪ 2024 / 081 2 3 4 5 6 78 9 10 11 12 13 1415 16 17 18 19 20 2122 23 24 25 26 27 2829 30 2024 / 10 ≫

×

[PR]上記の広告は3ヶ月以上新規記事投稿のないブログに表示されています。新しい記事を書く事で広告が消えます。



#import <UIKit/UIKit.h>

AddressBook フレームワークを読み込む
#import <AddressBook/AddressBook.h>
AddressBookUI フレームワークを読み込む
#import <AddressBookUI/AddressBookUI.h>

UIViewController( SuperClass) を継承して QuickStartViewController( SubClass ) を定義
@interface QuickStartViewController :UIViewController  <ABPeoplePickerNavigationControllerDelegate> {

  ボタンのラベルおよびアクションのアウトレットを宣言  
結びつけてるのかぁ
    IBOutlet UILabel *firstName;
   
    IBOutlet UILabel *lastName;
   
}


★プロパティ(property) プロパティは、アクセサメソッドに代わって使われる便利な表記法です。プロパティは、クラス宣言内に新しいメンバ変数を作成しません。プロパティは単に、既存のメンバ変数にアクセスするメソッドを定義するための簡単な表記法です。

@property (オプション指定) データ型 プロパティ名;
noatomic :
マルチスレッド環境を想定していない
retain : 保持する。メモリを確保するってことかな??

@property (nonatomic, retain) UILabel *firstName;

@property (nonatomic, retain) UILabel *lastName;


タップされた時の処理(アクション)
- (IBAction)showPicker:(id)sender;
@end


Delegate ってのは割り込み処理のようなものなのかなぁ??

iPhone Dev CenterGetting Started Documents の文章を赤(★マーク)でコピペしときます。
PR


この記事へコメントする








絵文字:
Vodafone絵文字 i-mode絵文字 Ezweb絵文字








08 2024/09 10
S M T W T F S
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
HN:
cow

自己紹介:
iPhone購入がきっかけでiPhoneアプリの制作にチャレンジ!