分割視圖(SplitViewController)調(diào)整master和detail的比例
在UISplitViewController的implementation文件中設(shè)置
self.preferredPrimaryColumnWidthFraction = 0.2; //(0.2即你需要的比例)
self.maximumPrimaryColumnWidth = [UIScreen mainScreen].bounds.size.width;
UIImagePickerController獲取圖庫(kù)圖片broken
- 當(dāng)在iOS9系統(tǒng)下,UIImagPickerControler的sourceType
設(shè)置為allowsEditing = YES時(shí),獲取到圖片僅是原圖的左上角;例如:
UIImagePickerController* picker = [[UIImagePickerController alloc] init];
picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
picker.allowsEditing = YES;
picker.delegate = self;
[self presentViewController:picker animated:YES completion:NULL];
目前的解決辦法是:將allowsEditing設(shè)置為NO;