Am I on the right track? If so, how can I bring the View image from the cell to the front view and keep it in the same position?
I think you are right on the conceptual steps. It's not difficult to get a View image from a cell and add it to the controller view. You can use methods like
- (CGRect)convertRect:(CGRect)rect toView:(UIView *)view
to get the correct position for the image.
When scrolling to another image, the original image is โrestoredโ to its original location in the table cell. Is it just moving one image from one look to another? How the hell are you sending it back to the original cell - keep the pointer to that cell when the user clicks on the image, and then do something like customCell.imageViewContainerView addSubview: originalImageView? Is it necessary to change if the user returns to the original image?
I think this is done using some kind of protocol between the gallery and the table view controllers. Perhaps it is just to hide / show the image, and the images in the gallery are actually another object. In any case, if you want to use the same image, you can send an object with a protocol between two controllers.
Hope this helps a bit;) I think the key is in the convertRect methods.
alejandromp
source share