bundlePath
バンドルディレクトリのフルパス名を返します
解説
バンドルディレクトリのフルパス名を返します。
返り値
( NSString * )
フルパス
引数
フレームワーク
Foundation
クラス
NSBundle
Instance Methods
使用可能
10.0
iOS2.0
参照
例文
#import "SetImage.h" @implementation SetImage - (IBAction)set:(id)sender { NSString *string; string = [[NSBundle mainBundle] bundlePath]; if (string!=nil){ [str setStringValue:string]; }else{ [str setStringValue:@"Nil"]; } } @end