概述 #if (__IPHONE_OS_VERSION_MAX_ALLOWED >= 30200) NSString *str; if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { str = [NSString stringWithString:@"Running as an iPad applica
#if (__IPHONE_OS_VERSION_MAX_ALLOWED >= 30200) Nsstring *str; if (UI_USER_INTERFACE_IdioM() == UIUserInterfaceIdiomPad) { str = [Nsstring stringWithString:@"Running as an iPad application"]; } else { str = [Nsstring stringWithString: @"Running as an iPhone/iPod touch application"]; } UIAlertVIEw *alert = [[UIAlertVIEw alloc] initWithTitle:@"Platform" message:str delegate:nil cancelbuttonTitle:@"OK" otherbuttonTitles:nil]; [alert show]; [alert release]; #endif 总结
以上是内存溢出为你收集整理的判断程序是不是ipad运行全部内容,希望文章能够帮你解决判断程序是不是ipad运行所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
评论列表(0条)