0
내 앱에 설정 번들을 사용하고 있습니다. 다음 코드에서 설정 묶음의 root.plist 및 root.strings 파일에 액세스 할 수 없습니다. 아무도 도와 줄 수 있습니까?settings.bundle에서 root.strings에 액세스 하시겠습니까?
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
NSString *plist = [[NSBundle mainBundle] pathForResource:@"Root" ofType:@"plist"];
NSDictionary *rootofplist = [NSDictionary dictionaryWithContentsOfFile:plist];
NSArray *preferenceitems = (NSArray *) [rootofplist valueForKey:@"PreferenceSpecifiers"];
}
no..it은 여전히 유에서 root.strings에서 문자열을 얻기 위해 노력 nil..Have을 반환 ... 시도 @ "루트"대신 @ "루트"를 대소 문자를 구분합니다 Settings.bundle? –
여기를 확인하십시오 : http://iphoneincubator.com/blog/tutorial/how-to-create-an-iphone-preferences-file – meronix