国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

objective-c - iOS選擇圖片,自定義裁剪時.為什么不能push進去?
滿天的星座
滿天的星座 2017-05-02 09:35:20
0
0
783
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(nonnull NSDictionary<NSString *,id> *)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進去,有個靜態(tài)庫的可以,但是不知道怎么做的
還有個問題就是present進去的話,點擊取消的時候,直接回到主界面,而不是選擇圖片
github 地址:https://github.com/ShelinShel...

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

滿天的星座
滿天的星座

全部回復(0)
最新下載
更多>
網(wǎng)站特效
網(wǎng)站源碼
網(wǎng)站素材
前端模板