Questions tagged [titleview]

A custom view displayed in the center of the navigation bar when the receiver is the top item

Declaration

OBJECTIVE-C

    @property(nonatomic, strong) UIView *titleView

SWIFT

   var titleView: UIView?

If this property value is nil, the navigation item’s title is displayed in the center of the navigation bar when the receiver is the top item. If you set this property to a custom title, it is displayed instead of the title.

Custom views can contain buttons. Use the buttonWithType: method in UIButton class to add buttons to your custom view in the style of the navigation bar. Custom title views are centered on the navigation bar and may be resized to fit.

The default value is nil.

Availability

Available in iOS 2.0 and later.

Reference:

titleView Reference

98 questions
0
votes
1 answer

What is the maximum size for a UINavigationBar titleView?

I want to add a logo to the navigation bar on the first view controller, but it scales it badly because I don't know what the maximum size is. Does anyone know? By the way, I know about the trick for creating full-sized images but I don't want to do…
jowie
  • 8,028
  • 8
  • 55
  • 94
0
votes
4 answers

How to remove left space in toolbar (and above and under)

How can I remove this ugly blue spaces around the in Xamarin.Forms ? ... …
Belight
  • 205
  • 2
  • 14
0
votes
1 answer

Xamarin.Forms: is it possible to update Shell.TitleView in code-behind?

I work on a Xamarin.Forms.Shell app containing 4 tabs. On the main tab, I have: a TitleView containing the logo of the company s ScrollView containing an Image as Header a ScrollView containing the main content, that can cover the Header to be…
0
votes
1 answer

Xamarin.Forms: how to center an Image in TitleView when ToolbarItems are displayed?

I'm working on a Xamarin.Forms.Shell app containing 4 tabs. I would like to display a common Title containing a centered SVG logo on all these pages. For this, I can use a TitleView like this:
0
votes
1 answer

how to set leading and trailing constraint for a xib used as titleView

I have Xib file with two labels, left and right. left one has 0 on leading and right 0 on trailing. in between a >= 15 constraint. This view is used as title view in a navigation bar. My Question is: How to set this xib in order to get left label…
biggreentree
  • 1,633
  • 3
  • 20
  • 35
0
votes
1 answer

iOS 9 title view is not correctly aligned

my UISegmentedControl in the centre of navbar looks fine in all iOS versions except For IOS 9. I have looked at many discussions but I couldn't find a solution. This happened at iOS 9 It should look like this I added the segmented control this…
0
votes
0 answers

How to center an ImageView in Xamarin.Forms 4.0 Shell.TitleView?

I am using Xamarin.Forms 4.0 with a shell having a flyout at the left. I am trying to display an Image at the center of Shell.TitleView, however, I have no idea how to achieve this correctly. And the result is like what is suggest in the official…
Samuel Leung
  • 85
  • 2
  • 11
0
votes
1 answer

How to show Navigationbar 'TitleView' Common for all pages

I have added TitleView in MainPage to show on Navigationbar but it shows only for MainPage when I navigate to some other page Navigationbar displaying empty. Below code I have in MainPage.xaml file
R15
  • 13,982
  • 14
  • 97
  • 173
0
votes
1 answer

Customizing iOS Navigation Bar

I'm wondering how to accomplish something like this on a UINavigationBar. It is the detail view of a card in the Wallet app. Based on the documentation, I can't see how to add extra views to the navigation bar to accomplish this sort of design.
tentmaking
  • 2,076
  • 4
  • 30
  • 53
0
votes
1 answer

Multiple properties with name 'BadgeView.Shared.CircleView.CornerRadius' found - Exception

I am using BadgeView plugin in Xamarin.Forms with TitleView but getting exception Xamarin.Forms.Xaml.XamlParseException: Position 8:81. Multiple properties with name 'BadgeView.Shared.CircleView.CornerRadius' found. This is my…
R15
  • 13,982
  • 14
  • 97
  • 173
0
votes
2 answers

xamarin forms master detail page flow direction in arabic

I have a Master-Detail Page in my project, I've set the phone language to Arabic and everything is working fine the master page is on the right and the icon is on the right. But the thing is the TitleView (toolbaritems) are pushed a little bit to…
mohammad anouti
  • 171
  • 2
  • 18
0
votes
2 answers

NavigationItem TitleView constraint not working

I want to create a search bar using UITextField. I tried to set NavigationItem's TitleView to the textfield and set corresponding constraints. But the textfield remain very short in the center of the navigation bar. How to make the textfield fill…
Jeffrey Yu
  • 65
  • 1
  • 11
0
votes
0 answers

Search bar in title view not centered anymore when becoming first responder

In my navigation bar, I have a right bar button item representing a search button. When I press on it, the following function gets called func didTapSearchButton(sender: Any) { navigationItem.rightBarButtonItems?.removeLast() …
0
votes
0 answers

Add UICollectionView with a UILabel and UIImageView in UINavigation item title view

I want to add UICollectionView with a UILabel and a button to the title view of navigation item. Please refer I have taken back icon as leftBarButtonItem and attachment and delete icon as rightBarButtonItem. I have created custom view for title…
0
votes
1 answer

titleview dissapears when a subview is added?

This is new to me so forgive me if I'm not asking the right question. I'm following a tutorial where we are creating a few subviews inside of a titleview for the navigation bar so that a picture and username displays. When I create the intial…