Having a problem with presentPopoverFromRect


This seems to crash my program every time I tap the table cell image and try and show the popover. There are no warnings, and everything builds and runs. The problem occurs in the last line of the function below.

Here’s the error: 2014-05-23 16:07:36.331 Homepwner[19370:60b] *** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[UIImageView _isResizable]: unrecognized selector sent to instance 0x8e51d90’

[code]-(void)showImage:(id)sender atIndexPath:(NSIndexPath *)ip {
NSLog(@“Showing image cuz u tpd thmb”);

if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad ) {
            BNRItem *i = [[[BNRItemStore sharedStore] allItems] objectAtIndex:[ip row]];
    NSString *imageKey = [i imageKey];
    UIImage *img = [[BNRImageStore sharedStore] imageForKey];
    if (!img) {
    CGRect rect = [[self view] convertRect:[sender bounds] fromView:sender];
    ImageViewController *ivc = [[ImageViewController alloc] init];
    [ivc setImage:img];
    imagePopover = [[UIPopoverController alloc] initWithContentViewController:ivc];
    [imagePopover setDelegate:self];
    [imagePopover setPopoverContentSize:CGSizeMake(600, 600)];
    [imagePopover presentPopoverFromRect:rect
                                  inView:[self view]



Figured it out. Problem in the ImageViewController.xib. Something wasn’t I found one of the those yellow warnings in the connections panel.

Xib files are a little bit of a mystery. Problems here can be be hidden.