aboutパネルの表示
AppleのNDA撤廃方針により、iPhone OS開発についての情報も表に出す事にしました。まぁ、当面こっちでやっていこうかと。
インストールされているアプリケーションのバージョンがわからなくて困るって事があるので、バージョン番号込みのいわゆる「aboutパネル」を表示するためにはこんな感じでOKっぽいです。
- (void)showToolAlert { NSString *ver_str = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]; UIAlertView *about_dlg; about_dlg = [[[UIAlertView alloc] initWithTitle:@"petite peinture" message:ver_str delegate:nil cancelButtonTitle:nil otherButtonTitles:@"OK", nil] autorelease]; [about_dlg show]; }