I’ve worked my way through all the beginner-level MonoTouch tutorials
without much trouble. As a supplemental learning exercise I’ve been trying
to see how many different things I can get to work in a single-view app. So
far, so good. But there is one thing that’s stumping me, and it’s
frustrating because it seems like it should be simple and obvious. 

I want to have the navigation bar visible and display a title on it, as we
did in the Model View Controller tutorial. Of course I’ve opened my single
view’s xib file in Interface Builder and set the Top Bar to Navigation Bar
under Simulated Metrics. My code builds without incident and runs fine in
the simulator, but the navigation bar isn’t displayed. To make sure I’m not
screwing something up, I’ve created a new solution where the only thing the
app does is display a label and have the navigation bar turned on. The label
displays fine, but no navigation bar.

I’ve searched online for a solution, but I’m still stumped. My simple
single-view app doesn't have a UINavigationController object. Do you *have*
to have a UINavigationController object so that you can set
SetNavigationBarHidden to false to make the navigation bar visible? Is there
a way to display the navigation bar without a UINavigationController object?


--Chris M.

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Navigation-Bar-Question-tp4412051p4412051.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to