私はこの質問を見ました:
これで、プロセスpidからアプリケーションパスを取得できましたが、上記の質問に従って、コードブローでアプリケーションアイコンを取得できませんでした。
NSBundle* bundle = [NSBundle bundleWithPath:apppath];
NSArray *infostmp = [[bundle infoDictionary] objectForKey:@"CFBundleIconFiles"];
if(infostmp){
NSString* iconPath = [[NSString alloc] initWithString:[infostmp objectAtIndex:0]];
UIImage* icon =[UIImage imageWithContentsOfFile:iconPath];
}