iPad开发那些坑

分割视图(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开发那些坑)