• After more than 15 years covering everything Apple, it’s with a heavy heart we announce that we will no longer be publishing new content on iMore and the iMore forums will be closing as of November 1st, 2024.

How do I perform a task after the completion of a previous task SWIFT?

I

iMore Question

How to perform a task after the completion of a previous task SWIFT

I am fairly new to programming and I have two buttons, one is camera the other is chooseExistingPhoto. I can access the camera functionality with the camera button and am trying to diplay the image that I take onto a UIImage in another view controller. My code is giving me an error of unable to render snapshot before it is taken. I assume that this is because I am also trying to use the button as a segue to display the new view controller. Is there a way to delay the segue action until after the user picks and image through their photo library or takes a photo?
 

Just_Me_D

Ambassador Team Leader, Senior Moderator
Moderator
Jan 8, 2012
60,414
885
113
Visit site
Re: How to perform a task after the completion of a previous task SWIFT

I personally do not know, but hopefully someone who does will reply soon.
 

Sherry_B

Well-known member
Jan 15, 2016
2,687
0
0
Visit site
Re: How to perform a task after the completion of a previous task SWIFT

@maxsmarties can help you. He says he's a developer.
 

Latest posts

Trending Posts

Members online

Forum statistics

Threads
262,069
Messages
1,773,545
Members
441,382
Latest member
Mohammadreza