viewController๋ฅผ ํ์ ํ ๋๋ง๋ค :
presentViewController(cropViewController, animated: true, completion: nil)
๋๋ ํ์ด๋ ์ธ ์ ๋๋ฉ์ด์
์ ์ป์ต๋๋ค. ๋ด๊ฐ ๊ทธ๊ฒ์ ๋ซ์ผ๋ฉด ๊ฐ์ ์ด์ผ๊ธฐ๊ฐ ๋์๊ฒ ํ์ด๋ ์์ ์ ๋๋ฉ์ด์
์ ๋ณด์ฌ์ค๋๋ค.
๋๋ ๊ทธ๊ฒ์ ๊ธฐ๋ณธ iOS ์ ๋๋ฉ์ด์ ์ผ๋ก ๋๋๋ฆฌ๊ณ ๋ฐํ ํ ๋ ์๋์์ ์ฌ๋ผ์ด๋ํ๊ณ ๋ซ์ ๋ ์๋๋ก ์ฌ๋ผ์ด๋ํ๊ณ ์ถ์์ต๋๋ค.
animationControllerForPresentedController
๋ฐ animationControllerForDismissedController
๋ชจ๋์ ๋ํด return nil;
์๋ํ์ง๋ง, ๋ทฐ ์ปจํธ๋กค๋ฌ๋ฅผ ์ ์ ํ ๋์๋ ์ฌ์ ํ ํ์ด๋ ์ธ ๊ฒฐ๊ณผ๋ฅผ ์ป์์ต๋๋ค.
๊ธฐ๋ณธ iOS ํ๋ ์ ํ ์ด์ ์ ๋๋ฉ์ด์ ์ผ๋ก ๋ ๋๋ฆฌ๋ ๋ฐฉ๋ฒ์ ์์ญ๋๊น?
์๋
ํ์ธ์ @erickva! ์ ๋๋ฉ์ด์
์ปจํธ๋กค๋ฌ๊ฐ nil
๋ฐํํ๋๋กํ๋ ๋ฐ ์ฌ๋ฐ๋ฅธ ๊ธธ์ ๊ฐ๊ณ ์์์ง๋ง ๋ค๋ฅธ ํ ๊ฐ์ง๋ ์ปจํธ๋กค๋ฌ ์์ฒด์ modalTransitionStyle
๋ฅผ ์ง์ ํ๋ ๊ฒ์
๋๋ค.
TOCropViewController *cropController = [[TOCropViewController alloc] init];
cropController.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
์คํ์ผ์ด ์ธ๋ก๋ก ์ค์ ๋ ๊ฒฝ์ฐ ์ ๋๋ฉ์ด์ ์ปจํธ๋กค๋ฌ๋ฅผ ๋นํ์ฑํํ๋ ์ ๋ฒ์ ์ ๋ฐฉ๊ธ ํธ์ ํ์ผ๋ฏ๋ก ํด๋น ์คํ์ผ๋ก ์ ๋ฐ์ดํธํ๋ฉด ์ถ๊ฐ ์ฝ๋ ์ค์ ์ถ๊ฐํ๊ธฐ ๋งํ๋ฉด๋ฉ๋๋ค. :)
๋์์ด ๋์๊ธฐ๋ฅผ ๋ฐ๋๋๋ค.
๋น์ ์ ์ ์ค์ ๋๋ค! ๊ฐ์ฌํฉ๋๋ค.
๊ฑฑ์ ๋ง! ๋์ ๋๋ฆด ์์์ด์ ๊ธฐ์ฉ๋๋ค! :) ์ฆ๊ฒจ!
์ ์ํ๊ฒ ๋ชจ๋ฌ ํ๋ ์ ํ
์ด์
์คํ์ผ์ ๋ณ๊ฒฝํ ์์๋ ์ ์ผํ ๋ฐฉ๋ฒ์ cropViewController.childViewControllers.first?.modalTransitionStyle = .coverVertical
์์ ๋ทฐ ์ปจํธ๋กค๋ฌ์ ์ก์ธ์คํ๋ ๊ฒ์
๋๋ค. ๋ ์ข์ ๋ฐฉ๋ฒ์ด ์์ต๋๊น?