Ios gets the currently running App.

  ios, question

I want to get the currently running app, how to get it. Can be private apis

NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];
 CFShow(infoDictionary);
 // app name
 NSString *app_Name = [infoDictionary objectForKey:@"CFBundleDisplayName"];
 // app version
 NSString *app_Version = [infoDictionary objectForKey:@"CFBundleShortVersionString"];
 // app build version
 NSString *app_build = [infoDictionary objectForKey:@"CFBundleVersion"];