I am trying to open multiple images with buttons, but don't know what to write to do this. Essentially I have 5 buttons, and each button is supposed to open a new UIImageview with that specific picture in a new View Controller. I have the outlet of the UIImageview and know I have to have an action for the button, but don't know what to write to open the specific image with each button. Please help!
在您的prepareForSegue:
方法中,使用类似以下内容的方法:
newViewController.imageView.image = whateverImageYouWantToSee
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.