macOS/iOS API解説

iOS , Mac アプリケーション開発のために使われる主要フレームワークの日本語情報です。2010年代に書かれた内容です。今後更新はありません。

目次

UIViewController

UIViewControllerクラス

INDEX>UIKit> ビューをコントロールするクラスです。 継承 UIResponder : NSObject 準拠 NSCoding NSObject (NSObject) フレームワーク /System/Library/Frameworks/UIKit.framework 使用可能 iOS2.0 定義 UINavigationController.h 概要 サブクラスを作って…

UIModalTransitionStyle

モーダルに画面遷移する場合のトランジション typedef enum { UIModalTransitionStyleCoverVertical = 0, UIModalTransitionStyleFlipHorizontal, UIModalTransitionStyleCrossDissolve, } UIModalTransitionStyle; ||< [asin:4794218524:detail] **解説 UIM…

willRotateToInterfaceOrientation:duration:

回転をしようとする時に呼ばれるデリゲートメソッド -(void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration 解説 返り値 ( void ) 引数 ( UIInterfaceOrientation )toInterfaceOrient…

willAnimateSecondHalfOfRotationFromInterfaceOrientation:duration:

回転のアニメーションの中間地点で呼び出されるデリゲートメソッド -(void)willAnimateSecondHalfOfRotationFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation duration:(NSTimeInterval)duration 解説 回転のアニメーションの中…

willAnimateRotationToInterfaceOrientation:duration:

画面が回転しようとするときに呼び出されるデリゲートメソッド -(void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation duration:(NSTimeInterval)duration 解説 ワンステップユーザーインターフェースの回転の前…

willAnimateFirstHalfOfRotationToInterfaceOrientation:duration:

回転のアニメーションの始まろうとするときに呼び出されるデリゲートメソッド -(void)willAnimateFirstHalfOfRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration 解説 返り値 ( void ) 引数…

viewWillDisappear:

INDEX>UIKit>UIViewController ビューが消されようとする時に呼ばれるデリゲートメソッド。 -(void)viewWillDisappear:(BOOL)animated 解説 アニメーションが始める前に呼び出されます。 遷移先のビューがまだ読み込み終わっていない場合は、遷移先の-loadVi…

viewWillAppear:

INDEX>UIKit>UIViewController ビューが表示されようとする時に呼ばれるデリゲートメソッド -(void)viewWillAppear:(BOOL)animated 解説 ビューの読み込みが終了して、画面描画のアニメーションが始まる前に呼び出されます。 返り値 ( void ) なし 引数 ( BO…

viewDidUnload

解説 返り値 ( void ) 引数 フレームワーク UIKit クラス UIViewController Instance Methods 使用可能 iPhone3.0 参照 例文

-viewDidLoad

Nibファイルで定義されたビューが読み込まれた時に呼び出されるデリゲートメソッド 解説 返り値 ( void ) 引数 フレームワーク UIKit クラス UIViewController Instance Methods 使用可能 iPhone2.0 参照 例文

viewDidDisappear:

INDEX>UIKit>UIViewController ビューが消された後に呼び出されるデリゲートメソッド。 -(void)viewDidDisappear:(BOOL)animated 解説 画面を閉じるアニメーションが終わる時に呼び出されます。 返り値 ( void ) 引数 ( BOOL )animated フレームワーク UIKit…

viewDidAppear:

INDEX>UIKit>UIViewController ビューが表示されたあとに呼び出されるデリゲートメソッド -(void)viewDidAppear:(BOOL)animated 解説 画面遷移アニメーションが完全に終わったあとに呼び出されます。 返り値 ( void ) 引数 ( BOOL )animated フレームワーク …

shouldAutorotateToInterfaceOrientation:

画面が自動的に回転しようとするときに呼び出されるデリゲートメソッド。 -(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation 解説 画面が自動的に回転しようとするときに呼び出されるデリゲートメソッド。 YESを…

setToolbarItems:animated:

ツールバーアイテムをセットします。 -(void)setToolbarItems:(NSArray *)toolbarItems animated:(BOOL)animated 解説 ツールバーアイテムをセットします。 返り値 ( void ) なし 引数 ( NSArray * )toolbarItems セットするツールバーアイテムの配列 ( BOOL…

setEditing:animated:

テーブルビューのセルを編集可能・不可能にする。 -(void)setEditing:(BOOL)editing animated:(BOOL)animated 解説 返り値 ( void ) 引数 ( BOOL )editing ( BOOL )animated フレームワーク UIKit クラス UIViewController Instance Methods 使用可能 iPhone…

rotatingHeaderView

解説 返り値 ( UIView * ) 引数 フレームワーク UIKit クラス UIViewController Instance Methods 使用可能 iPhone2.0 参照 例文

rotatingFooterView

解説 返り値 ( UIView * ) 引数 フレームワーク UIKit クラス UIViewController Instance Methods 使用可能 iPhone2.0 参照 例文

presentModalViewController:animated:

モーダルビューを表示します。 -(void)presentModalViewController:(UIViewController *)modalViewController animated:(BOOL)animated 解説 単にアラートならUIAlertクラスを使います。 返り値 ( void ) 引数 ( UIViewController * )modalViewController ( …

loadView

INDEX>UIKit>UIViewController viewプロパティがnilの場合に呼び出される 解説 このメソッドを呼び出してはいけません。Storyboardを読み込む際に呼び出されます。 viewプロパティがnilの場合に呼び出されてコントローラーのビューを作ります。画面のセット…

isViewLoaded

ビューはロードされたか 解説 返り値 ( BOOL ) ロードされたかどうか 引数 フレームワーク UIKit クラス UIViewController Instance Methods 使用可能 iPhone3.0 参照 例文

-initWithNibName:bundle:

Nibファイルからオブジェクトを初期化して返します。 -(id)initWithNibName:(NSString *)nibName bundle:(NSBundle *)nibBundle 解説 返り値 ( id ) UIViewControllerまたはそのサブクラス 引数 ( NSString * )nibName ( NSBundle * )nibBundle フレームワー…

editButtonItem

編集・追加ボタン 解説 ( UIBarButtonItem * ) フレームワーク UIKit クラス UIViewController Instance Methods 使用可能 iPhone2.0 参照 例文

didRotateFromInterfaceOrientation:

画面が回転したあとに呼び出されるデリゲートメソッド -(void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation 解説 返り値 ( void ) 引数 ( UIInterfaceOrientation )fromInterfaceOrientation フレームワーク UIKit …

dismissModalViewControllerAnimated:

モーダルビューを消します -(void)dismissModalViewControllerAnimated:(BOOL)animated 解説 返り値 ( void ) 引数 ( BOOL )animated フレームワーク UIKit クラス UIViewController Instance Methods 使用可能 iPhone2.0 参照 例文

-didReceiveMemoryWarning

INDEX>UIKit>UIViewController メモリが少なくなった場合に呼び出されるデリゲートメソッド - (void)didReceiveMemoryWarning 解説 iOS6から-viewWillUnloadと-viewDidUnloadをメモリ警告時に呼ばなくなりました。(非推奨に) iOS6からはメモリ警告時のビュ…

解説 (void)didAnimateFirstHalfOfRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation 返り値 引数 フレームワーク UIKit クラス UIViewController Instance Methods 使用可能 iPhone2.1 参照

wantsFullScreenLayout

解説 @property(nonatomic,assign) BOOL wantsFullScreenLayout 返り値 引数 フレームワーク UIKit クラス UIViewController Property 使用可能 iPhone3.0 参照 例文

view

プロパテイ ビュー 解説 @property(nonatomic, retain) UIView *view フレームワーク UIKit クラス UIViewController Property 使用可能 iPhone2.0 参照 例文

解説 @property (nonatomic, retain) NSArray *toolbarItems 返り値 引数 フレームワーク UIKit クラス UIViewController Instance Methods 使用可能 iPhone3.0 参照

title

プロパティ タイトル 解説 @property(nonatomic, copy) NSString *title フレームワーク UIKit クラス UIViewController Property 使用可能 iPhone2.0 参照 例文