当前位置:编程学习 > wap >>

ios 判断当前设备

[cpp]
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"; 
补充:移动开发 , IOS ,
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,