iOS判断设备-userInterfaceIdiom

在编程时能够经过下面语句判断设备,常量UIUserInterfaceIdiomPhone 用于判断是否为iPhone设备,UIUserInterfaceIdiomPad用于判断是否为iPad设备。编程 if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone)spa {ci // iPhone设备i
相关文章
相关标签/搜索