UIKit.UINavigationItem.TitleView Property
A view that is displayed in the center of the navigation bar.


[get: Foundation.Export("titleView")]
[set: Foundation.Export("setTitleView:")]
public virtual UIView TitleView { get; set; }


If null, the UINavigationItem.Title will be shown.

This value can be null.


C# Example

var viewController = new SimpleViewController();
viewController.NavigationItem.TitleView = new UIView(){
	Frame = new RectangleF(0, 0, 100, 30),
	BackgroundColor =  UIColor.Green
var navController = new UINavigationController(viewController);
window.RootViewController = navController;

F# Example

let viewController = new SimpleViewController()
viewController.NavigationItem.TitleView <- new UIView(BackgroundColor = UIColor.Green, Frame = new RectangleF(0.f, 0.f, 100.f, 30.f))

let navController = new UINavigationController(viewController)   
window.RootViewController <- navController           


Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: