Hi, Is there a way to add a UITabBar to an UIView programmatically? I would like to treat the UITabBarItems as a button rather than UIViewController? I can use Xcode and added the UITabBar using xib UIdesign tool, but never get to work programmatically, the UITabBar is not showing after I add it to the UIView.subview.
for example:
// create item1
UITabBarItem item1 = UITabBarItem();
UITabBarItem item2 = UITabBarItem();
var tabs = new UITabBarItem[] {item1, item2};
// create UITabBar
UITabBar tabBar = new UITabBar();
tabBar.SetItems(tabs, true);
uiView.AddSubview(tabBar);
But tabBar didn't show.
Thanks,
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
