objective-c - iOS选择图片,自定义裁剪时.为什么不能push进去?
滿天的星座
滿天的星座 2017-05-02 09:35:20
0
0
590
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(nonnull NSDictionary *)info { UIImage *originalImage = info[UIImagePickerControllerOriginalImage]; CGFloat width = self.view.frame.size.width; CGFloat height = self.view.frame.size.height; CGRect cropFrame = CGRectMake(50 / 2.0, (height - width - 50) / 2.0, width - 50, width - 50); ImageCropperViewController *imageCropperViewController = [[ImageCropperViewController alloc] initWithImage:originalImage cropFrame:cropFrame limitScaleRatio:3.0f]; imageCropperViewController.delegate = self; [picker presentViewController:imageCropperViewController animated:YES completion:nil];// 这里不能用push,why [picker.navigationController pushViewController:imageCropperViewController animated:YES]; }

[picker.navigationController pushViewController:imageCropperViewController animated:YES];
这句没作用

选择图片的时候点击无反应
控制台提示
[Generic] Creating an image format with an unknown type is an error
这为什么啊?

我该怎么做才能push进去,有个静态库的可以,但是不知道怎么做的
还有个问题就是present进去的话,点击取消的时候,直接回到主界面,而不是选择图片
github 地址:https://github.com/ShelinShel...

那个可以push的版本:https://github.com/wangluhui/...

滿天的星座
滿天的星座

reply all (0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!