1. 使用canOpenURL判断
NSURL *instagramURL = [NSURL URLWithString:@"instagram://location?id=1"];
BOOL hasInstagram = [[UIApplication sharedApplication] canOpenURL:instagramURL];
此方法需要定义URLSchemes
2. UIDevice Category For Processes
// .h
@interface UIDevice (ProcessesAdditions)
- (NSArray *)runningProcesses;
@end
// .m
#import <sys/sysctl.h>
@implementation UIDevice (ProcessesAdditions)
- (NSArray *)ru