[MonoTouch] Sharing UIToolbar between ViewControllers?
Chris House
chrishouse at proag.com
Wed Mar 21 17:52:20 UTC 2012
I'm currently developing an iPad app with MT. The general UI layout
consists of four screens, each with a UITabBarController at the bottom
of the screen. The UITabBarController will have four buttons each
pointing to a different view controller. At the top of each of these
four view controllers will be a UIToolbar. This UIToolbar will be
essentially the same on all four view controllers. It will have two
UISegmentedControls and a label that will need to change slightly
depending on the view controller currently being displayed.
My question is this: Considering that there is so much common behavior
and appearance to my UIToolbar, what is the best way to share this
across my four view controllers? Is the best option to just create some
function that constructs my UIToolbar and its associated controls and
then add that to the current view controller as a subview at runtime or
is there a better approach?
Thanks!
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monotouch/attachments/20120321/9aa47f5b/attachment.html>
More information about the MonoTouch
mailing list