I have a tableview which contains images in cell.
If I touch an image in any row of the table,it should redirect to the nextpage and show that perticular image in next page.
Please help me figure how this could be done?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
use didSelectRowAtIndexPath delegate:
by knowing which
UITableviewCellgot selected using[indexPath row]you will get what you need, let’s assume you’re storing yourUIImagesin an arrayMyImagesArrayThis is an another Answer for Comment #3 on this Answer:
Declare a variable in the
UIViewControllerthat is going to show the image and pass the selected image, or you can even send the name of theUIImage:In ImageViewer load the image by it’s name for example: