Detecting whether or not device support phone calls?
问题 Is the below code reliable to be used to determine whether a device can support phone calls or not? My concern is if apple changes the iphone string to anything else let's say they decide to have "iphone 3g", "iphone 4" etc. [[UIDevice currentDevice].model isEqualToString:@"iPhone"] 回答1: The iPhone supports the tel:// URI scheme. So you could use: [[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"tel://"]]; canOpenURL: explicitly checks whether there's an application