i have 2 views. A button and an UIimageView in view 1. In view 2 i have table view with a list of categories and i have set up images for every category using:
cell.imageView.image
now if i select a row, i should see an enlarged image of that row in view 1. How can I accomplish this?
Use delegate methods. Once a row is selected in second view, pass the UIImage object or image name and set it to the imageview in first view.
For more info on delegate methods, pl. see the following links.
The Basics of Protocols and Delegates
Using Protocols and Delegates to pass data between views