アプリの設定画面等でよく目にするアプリのバージョンを取得する方法。
INDEX
アプリのバージョンを取得
mainBundleからキー @”CFBundleShortVersionString” を指定し取得する。
[code]
myLabel.text = [NSString stringWithFormat:@”%@”,[[NSBundle mainBundle] objectForInfoDictionaryKey:@”CFBundleShortVersionString”]];
[/code]