bundleWithIdentifier:
指定したIDを持つ以前につくられたNSBundleインスタンスを返します
+(NSBundle *)bundleWithIdentifier:(NSString *)identifier:
返り値
( NSBundle * )
バンドル
引数
( NSString * )identifier
バンドルID
フレームワーク
Foundation
クラス
NSBundle
Class Methods
使用可能
10.0
参照
+ bundleForClass:
+ bundleWithPath:
例文
#import "SetImage.h" @implementation SetImage - (IBAction)set:(id)sender { NSBundle *bundle; //ターゲット、アプリケーション設定に CFBundleIdentifier 文字列 com.oomori.theAppと設定してある bundle = [NSBundle bundleWithIdentifier:@"com.oomori.theApp" ]; NSLog([bundle bundlePath]); } @end