Looks like you should have:
- (id)init
{
InAppPurchasePopoverViewController* purchaseController = [[InAppPurchasePopoverViewController alloc] initWithNibName:@"InAppPurchasePopover" bundle:nil];
self = [super initWithContentViewController:purchaseController];
if (self)
{
}
return self;
}
Because currently your class isn't respecting it's superclass requirements and is creating an additional popover controller which is not used properly. Everywhere you use popover
should really be using self
.