iOS开发

iPad开发那些坑

2016-02-25  本文已影响328人  深山问

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

在UISplitViewController的implementation文件中设置

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

UIImagePickerController获取图库图片broken

  UIImagePickerController* picker = [[UIImagePickerController alloc] init];  
  picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;  
  picker.allowsEditing = YES;  
  picker.delegate = self;  
  [self presentViewController:picker animated:YES completion:NULL]; 

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

上一篇 下一篇

猜你喜欢

热点阅读