IOS UI问题集
2015-06-29 15:13
387 查看
启动动画的尺寸大小:
LaunchImage320x480.png
LaunchImage640x960.png
LaunchImage640x1136.png
[转载]ios 开发 icon图标设置
iPhone屏幕尺寸、分辨率及适配
![](http://img.blog.csdn.net/20150716125018574?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
![](http://img.blog.csdn.net/20150917094529749?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
一、ios横竖屏适配解决方案
LaunchImage320x480.png
LaunchImage640x960.png
LaunchImage640x1136.png
[转载]ios 开发 icon图标设置
iPhone屏幕尺寸、分辨率及适配
一、ios横竖屏适配解决方案
#pragma mark - 竖屏设置 - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { NSLog(@"%s",__FUNCTION__); if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) { if (interfaceOrientation == UIInterfaceOrientationPortrait) { Landscape=NO; return (interfaceOrientation == UIInterfaceOrientationPortrait); } else if (interfaceOrientation == UIInterfaceOrientationLandscapeLeft) { Landscape=YES; return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft); }else if (interfaceOrientation == UIInterfaceOrientationLandscapeRight) { Landscape=YES; return (interfaceOrientation == UIInterfaceOrientationLandscapeRight); } return NO; }else { return YES; } } - (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration { if (toInterfaceOrientation == UIInterfaceOrientationPortrait) { Landscape=NO; } else if (toInterfaceOrientation == UIInterfaceOrientationLandscapeLeft) { Landscape=YES; }else if (toInterfaceOrientation == UIInterfaceOrientationLandscapeRight) { Landscape=YES; } NSLog(@"%s Landscape:%@",__FUNCTION__,Landscape==YES?@"YES":@"NO"); } //iOS 7 适配 - (NSUInteger)supportedInterfaceOrientations { NSLog(@"%s",__FUNCTION__); return UIInterfaceOrientationMaskAll; } - (BOOL)shouldAutorotate { NSLog(@"%s",__FUNCTION__); return YES; }
相关文章推荐
- Java中String、StringBuffer和StringBuilder的区别和堆栈内存分配
- 跳出手掌心--如何立即触发UIButton边界事件
- mysql 存储 emoji报错( Incorrect string value: '\xF0\x9F\x98\x84\xF0\x9F)的解决方案
- ArduinoYun教程之ArduinoYun硬件介绍
- LeetCode_Unique Binary Search Trees
- ios学习笔记:UICollectionView收集
- IOS中的UILineBreakMode
- 用WIZwiki-W7500 和 Arduino Motor Shield 进行网页电机控制
- SEGUE
- Java PriorityQueue Class Example
- RequireJS基础
- 警告: Scene is unreachable due to lack of entry points and does not have an identifier for runtime acc
- ArduinoYun教程之ArduinoYun硬件介绍
- Tweenjs中的MotionGuidePlugin示例
- PHP Warning: Unknown: It is not safe to rely on the system's timezone settings. You are *required*
- Android UI 实现表格布局
- 警告: Multiple build commands for output file
- Ant build.xml 批量打渠道包 加混淆功能
- require(),include(),require_once()和include_once()区别
- ios UIBarButtonItem rightBarButtonItem Title 设置不了