Adding a UISwitch to a Navigation Item.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Adding a UISwitch to a Navigation Item.

mgmiphone

Anyone know how to do this?


_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch
Reply | Threaded
Open this post in threaded view
|

Re: Adding a UISwitch to a Navigation Item.

Nic Wise
By NavigationItem, I assume you mean the top bar in a UINavigationController?

Where do you want to add it? In the middle or left/right side? The
middle is fairly easy, at least for segment controls:

                var segmentControl = new UISegmentedControl(new
RectangleF(0,0,200,25));
           //etc


                dvc.NavigationItem.TitleView = segmentControl;

(dvc is a dialogViewController, but it'll work with any UITableViewController)

left and right side might be harder tho.



On 22 April 2013 20:53, Mike Murdock <[hidden email]> wrote:
> Anyone know how to do this?
>
>
> _______________________________________________
> MonoTouch mailing list
> [hidden email]
> http://lists.ximian.com/mailman/listinfo/monotouch
>



--
Nic Wise
t.  +44 7788 592 806 | @fastchicken
b. http://www.fastchicken.co.nz/
_______________________________________________
MonoTouch mailing list
[hidden email]
http://lists.ximian.com/mailman/listinfo/monotouch