读书人

ios 判断目前设备

发布时间: 2012-11-06 14:07:00 作者: rapoo

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";

读书人网 >操作系统

热点推荐