iOS 8 Beta 2 (and simulator) - .popoverContentSize


#1

In BNRItemsViewController, we implement a UIPopoverController to display a large version of our image:

__weak BNRItemCell *weakCell = cell;
    
    cell.actionBlock = ^{
        NSLog(@"Going to show image for %@",item);
        
        BNRItemCell *strongCell = weakCell;
        
        if ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPad) {
            NSString *itemKey = item.itemKey;
            UIImage *img = [[BNRImageStore sharedStore] imageForKey:itemKey];
            
            if (!img) {
                return;
            }
            
            CGRect rect = [self.view convertRect:strongCell.thumbnailView.bounds fromView:strongCell.thumbnailView];
            BNRImageViewController *ivc = [[BNRImageViewController alloc] init];
            ivc.image = img;
            
            self.imagePopover = [[UIPopoverController alloc] initWithContentViewController:ivc];
            self.imagePopover.delegate = self;
            self.imagePopover.popoverContentSize = CGSizeMake(600.0, 600.0);
            [self.imagePopover presentPopoverFromRect:rect inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
        }
    };

I’m finding that this works just fine on my iOS7.1.1 iPad, and in the Xcode 5.1 simulator. In the Xcode 6 Beta simulator, and on my iPad running iOS8 beta 2, the popover appears with a size of 320x480. I can’t find any documentation about the property changing in iOS8, so I’m wondering if this is a bug.

Anyone else having trouble with this?


#2

Same thing is happening for me