Saving a photo and using it immediately

前端 未结 3 950
悲哀的现实
悲哀的现实 2021-01-17 04:33

I have the following code for taking a photo and saving it to the camera roll. I need to be able to use it there and then after saving without having to go back into the gal

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-17 05:27

    You can use protocols/Delegation-pattern for this. See the Apple Doc.

    Basically you create a Protocol in your class with the requiered functions, set a delegate variable, and then hand off your Image to the new View Controller. You can find a tutorial here.

提交回复
热议问题