Bug 1786 - iOS 5 the designated initializer for UIPopoverController is initWithContentViewController:
Summary: iOS 5 the designated initializer for UIPopoverController is initWithContentVi...
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: 5.0
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2011-10-30 18:42 UTC by ajb
Modified: 2012-01-12 14:39 UTC (History)
5 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description ajb 2011-10-30 18:42:31 UTC
as of iOS 5 the designated initializer for UIPopoverController is initWithContentViewController:(UIViewController*)viewController...and not init.

  at (wrapper managed-to-native) MonoTouch.ObjCRuntime.Messaging:IntPtr_objc_msgSend (intptr,intptr)
  at MonoTouch.UIKit.UIPopoverController..ctor () [0x00016] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIPopoverController.g.cs:69 
  at MedTodo.Popover.Initialize () [0x0000a] in /Users/abhatia/projects/monotouch/personal/MedTodo/src/MedTodo/ViewControllers/Popover/Popover.cs:50 
  at MedTodo.MainNavController.ViewDidLoad () [0x0000d] in /Users/abhatia/projects/monotouch/personal/MedTodo/src/MedTodo/NavControllers/MainNavController.cs:33 
  at (wrapper managed-to-native) MonoTouch.ObjCRuntime.Messaging:void_objc_msgSend (intptr,intptr)
  at MonoTouch.UIKit.UIWindow.MakeKeyAndVisible () [0x0000b] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIWindow.g.cs:105 
  at MedTodo.MedTodoAppDelegate.FinishedLaunching (MonoTouch.UIKit.UIApplication app, MonoTouch.Foundation.NSDictionary options) [0x00031] in /Users/abhatia/projects/monotouch/personal/MedTodo/src/MedTodo/MedTodoAppDelegate.cs:24 
  at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
  at MonoTouch.UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00042] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:29 
  at MedTodo.Application.Main (System.String[] args) [0x00000] in /Users/abhatia/projects/monotouch/personal/MedTodo/src/MedTodo/Main.cs:13
Comment 1 Jeffrey Stedfast 2011-10-31 16:45:29 UTC
I'm not sure I follow what the problem is, but I guess what you need to use is:

new UIPopoverController (UIViewController viewController)


base (viewController)

if you are subclassing it.

Is that what you mean?
Comment 2 Jeffrey Stedfast 2011-11-09 16:40:03 UTC
Ugh, I know you explained the issue to me in IRC but now I forget what it was and sadly I didn't update the bug right away.
Comment 3 Jeffrey Stedfast 2011-11-09 16:45:38 UTC
Okay, issue is just that the default ctor for UIPopoverController will throw an error in iOS5
Comment 4 Alan McGovern 2011-12-08 20:28:28 UTC
*** Bug 2389 has been marked as a duplicate of this bug. ***
Comment 5 Alan McGovern 2011-12-08 20:28:34 UTC
*** Bug 2270 has been marked as a duplicate of this bug. ***
Comment 6 Sebastien Pouliot 2012-01-12 14:39:49 UTC
Fixed in master. Thanks for the report.