美文网首页iOS开发
iPad开发那些坑

iPad开发那些坑

作者: 深山问 | 来源:发表于2016-02-25 10:06 被阅读328次

分割视图(SplitViewController)调整master和detail的比例

在UISplitViewController的implementation文件中设置

  self.preferredPrimaryColumnWidthFraction = 0.2;         //(0.2即你需要的比例)
  self.maximumPrimaryColumnWidth = [UIScreen mainScreen].bounds.size.width;

UIImagePickerController获取图库图片broken

  • 当在iOS9系统下,UIImagPickerControler的sourceType
    设置为allowsEditing = YES时,获取到图片仅是原图的左上角;例如:
  UIImagePickerController* picker = [[UIImagePickerController alloc] init];  
  picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;  
  picker.allowsEditing = YES;  
  picker.delegate = self;  
  [self presentViewController:picker animated:YES completion:NULL]; 

目前的解决办法是:将allowsEditing设置为NO;

相关文章

  • iPad开发那些坑

    分割视图(SplitViewController)调整master和detail的比例 在UISplitViewC...

  • iOS iPad开发~demo

    iOS iPad开发~demo iOS iPad开发~demo

  • Unity开发之路上的那些坑(一)2D Sprite占用的Bat

    前言 『Unity开发之路上的那些坑』这个系列将会记录我在Unity游戏开发上遇到的那些坑和解决办法。 一、问题概...

  • ipad开发

    IPAD 一、iPad开发 1. 了解什么是iPad 2. 掌握iphone与ipad的开发时区别(尺寸、点、排版...

  • 在ipad上开发遇到的坑

    UIAlertController 效果就如上图所示,具体位置根据项目需求来设置。

  • NDK 开发那些坑

    零、AndroidStudio 下载 NDK 在 SDK 管理器中下载如下三项,会下载到 SDK 所在目录下,如有...

  • ipad开发

    RootableviewController.m #import "RooTableViewCotntroller...

  • 重点 (一) : IPad和IPhone

    iPad开发与iPhone开发的异同简介1. iPad开发与iPhone开发的异同2. QQ空间的分析3. 登录界...

  • 适配iphone和iPad

    一、分别开发iphone和iPad版本二、兼容开发iphone和ipad1、General -> Deployme...

  • Swift KeyCommands 调用无效

    记录一次swift开发中的坑. 做一个项目,需求是iPad pro外接键盘提供快捷键,于是查阅了资料, 发现几乎都...

网友评论

    本文标题:iPad开发那些坑

    本文链接:https://www.haomeiwen.com/subject/snmikttx.html