[MonoTouch] Tabbed project sample error

Jeff Stedfast jeff at xamarin.com
Mon Oct 24 11:51:16 EDT 2011


Hi Alphapage,

My guess is the problem is that UIWindow.RootViewController property is not
available in iOS 3.x (it was added in iOS4).

What you can do, instead, is:

window.AddSubview (tabBarController.View);

Hope that solves your issue!

Jeff

On Mon, Oct 24, 2011 at 6:20 AM, Alphapage <alphapage at gmail.com> wrote:

> Hello,
> I try the tabbed project.
>
> It is working in the Iphone simulator.
> But when I try to deploy to my device 3.1.3, I get an exception in
> window.RootViewController = tabBarController;
>
> I set the project to target 3.0: the first time I had to change:
> this.TabBarItem.Image = UIImage.FromBundle ("Images/first");
> to
> this.TabBarItem.Image = UIImage.FromBundle ("Images/first.png");
> ???
>
> After I get this exception:
> "objective c exception thrown NSInvalidArgumentexception *** UIIwindow
> setrootviewcontroller unrecognized selection sent to instance 0x753920
>
> Thanks in advance for your help.
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/Tabbed-project-sample-error-tp3932686p3932686.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> MonoTouch at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monotouch
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monotouch/attachments/20111024/af34d463/attachment.html 


More information about the MonoTouch mailing list