I have a tableview. I want to find the center of the UIImageView for the appDelegates window.
MA_MobileAppDelegate *appDelegate = (MA_MobileAppDelegate *)[[UIApplication sharedApplication] delegate];
UAModalPanel *modalPanel = [[MSPicturePreview alloc] initWithFrame:appDelegate.window.frame withimage:self.customImageView.image];
[appDelegate.window addSubview:modalPanel];
[modalPanel showFromPoint:[appDelegate.window.superview convertPoint:[self.customImageView center] toView:nil]];
The code below makes the point at the top left. Any way to get the actual point of the image on the window?