首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 操作系统 >

ios 判断目前设备

2012-11-06 
ios判断当前设备 if(UI_USER_INTERFACE_IDIOM() UIUserInterfaceIdiomPhone){CGSize result [[UIScre

ios 判断当前设备

 if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)    {        CGSize result = [[UIScreen mainScreen] bounds].size;                if(result.height == 480.f)        {            return @"ViewController";        }        else        {            return @"ViewController-iPhone5";        }    }    return @"ViewController-iPad";

热点排行