Level Up Kanji
Category: Games
Released: Sep 17, 2014
Version: 1.0.0
Size: 9.9 MB
Language: English
Link: iTunes
NSString *filePath = [[NSBundle mainBundle] pathForResource:@"MyFile" ofType:@"txt"];
NSData *myData = [NSData dataWithContentsOfFile:filePath];
if (myData) {
// do something useful
}
NSString *filePath = [[NSBundle mainBundle] pathForResource:@"HelpDoc" ofType:@"htm"];
NSData *htmlData = [NSData dataWithContentsOfFile:filePath];
if (htmlData) {
[webView loadData:htmlData MIMEType:@"text/html" textEncodingName:@"UTF-8" baseURL:[NSURL URLWithString:@"http://iphoneincubator.com"]];
}
NSString *filePath = [[NSBundle mainBundle] pathForResource:@"important" ofType:@"txt"];
if (filePath) {
NSString *myText = [NSString stringWithContentsOfFile:filePath];
if (myText) {
textView.text= myText;
}
}
NSString * language = [[NSLocale preferredLanguages] objectAtIndex:0];Or
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
NSArray* arrayLanguages = [userDefaults objectForKey:@"AppleLanguages"];
NSString* currentLanguage = [arrayLanguages objectAtIndex:0];
NSString *language = [[[NSBundle mainBundle] preferredLocalizations] objectAtIndex:0];
[[UIApplication sharedApplication] setApplicationIconBadgeNumber: 0];[[UIApplication sharedApplication] cancelAllLocalNotifications];