通过调用私有库MobileInstallation中的MobileInstallationUnstall函数,声明如下:
typedef int (*pMobileInstallationUnstall)(NSString *pBundleID, NSDictionary *pDic, void *pParam1, void *pParam2);
第一个参数为应用的ID,比如:com.apple.app, 第二个参数为应用的类型:[NSDictionary dictionaryWithObject:@"Any" forKey:@"ApplicationType"],
后面两个参数不知作何用,直接传NULL就可以。