Questions tagged [navigationitem]

80 questions
0
votes
1 answer

Refer to the navigation item above the current navigation item in the hiearchy

I have a navigation item, and when you click a button on that navigation item the navigation controller will pop. This is good but i want to send a message to the navigation item that is above this one in the hierachy before it pops. Is there anyway…
stephen
  • 1,617
  • 3
  • 20
  • 27
0
votes
1 answer

Setting title for navigationItem

I have inserted some view in titleView which is in navigationItem like this self.navigationItem.titleView=someView; after this i set it as nil self.navigationItem.titleView=nil; then after this i can't set title in navigationItem as…
Jeeva
  • 101
  • 1
  • 5
0
votes
0 answers

How to fix logo position in imageview within navbaritem.titleview or .leftBarButtonItem in swift

I'm doing a Netflix clone & configure this navigation bar in swift UIKit & I got stuck at adding the logo on the left side of the navbar. Still, it ended in the centre whatever way i do it titleview or leftbarbuttonitem it results the same. here is…
0
votes
0 answers

Salesforce Mobile App Navigation Item Customization

Is it possible to develop a custom aura/lwc component that helps each user to set up his salesforce app main page when he first open the app? I know that it is possible to do that through the app edit but unfortunately our client need to do it…
0
votes
1 answer

Navigation Bar Button Item Alignment Issue

I'm building a netflix clone. In configuring the nav bar, I keep running into an odd error that I can't seem to find a solution for anywhere: I want my nav bar to contain a "leftBarButtonItem" that houses a UIImage of the Netflix logo w a…
0
votes
1 answer

Releasing a navigationItem

I've the following question: I've an AppDelegate and I add there a navigationController and load UIViewController B in it. In B I add a navigationItem, a leftBarButtonItem or a rightBarButtonItem. Where do I have to release these items, because I…
andi1984
  • 676
  • 10
  • 27
0
votes
1 answer

UISegmentedControl only shows first item on device but works in Simulator

I have searched around an figured out how to add a UISegmentedControl item to the navigation bar button item (right bar button). It works fine in the simulator but when I try it on the device, only the first item in the segmented control shows up. …
0
votes
1 answer

How can I reset navigation bar items when coming back from popup?

I have a navigation bar with two buttons as the right bar button items and a text field in the title view. If I tap the text field, a search screen pops up and I can enter texts into the text field. The texts in the text field would set the…
0
votes
1 answer

Change the title color of a navigation item in Xcode 11.4

I cannot change the title color of a navigation item. It is an old project with support for iOS 10.0+. Setting the title: navigationItem.title = "My Title" Someone changed the property titleColor (in Title Text Attributes) of a navigation bar in a…
Vladislav Markov
  • 587
  • 1
  • 5
  • 19
0
votes
1 answer

I want to hide the navigation bar and display only the back button in SwiftUI

navigationBarTitle is hidden. How can I display the back button in this state? struct SampleView: View { var body: some View { ScrollView() { Text("text") } .navigationBarTitle("") …
Ika
  • 1,271
  • 1
  • 12
  • 20
0
votes
1 answer

NavigationBar prefersLargeTitle not working

Using iOS 13.3, I observe a strange behaviour of the navigationBar. If dragging up, the navigationBar contracts. (see video) Don't worry about the tabs that are part of the navigationBar. The strange behaviour also happens without them. And also the…
iKK
  • 6,394
  • 10
  • 58
  • 131
0
votes
1 answer

In iOS11 trying to add a round image as navigationItem in a NavigationBar and it is not clipping its edges

Using iOS13.3, XCode11.3, I try to place a round Image as rightBarButtonItem on my largeTitle NavigationBar. The button is drawn, however it does not get clipped and there are ugly corners in white remaining. Here is my code (see below): As you can…
iKK
  • 6,394
  • 10
  • 58
  • 131
0
votes
0 answers

How to change UINavigationController navigationBar backgroundColor with default animation in specific viewController

How to change UINavigationController navigationBar backgroundColor with default animation in specific viewController. Every question that i find in the web was without animation. Similar question here How to change the color of navigation bar on a…
0
votes
2 answers

UIBarButtonItem color setting in Swift-5.0

I realised that the color-behaviour of my UIBarButtonItem's (left and right buttons) is not as desired. If I press and hold the right UIBarButton (see video), then the color changes from light-yellow to gray'isch dark-yellow. However, I would like a…
iKK
  • 6,394
  • 10
  • 58
  • 131
0
votes
2 answers

Navigationview onitem click listener not working

I want to open fragment from navigation item click but it is not working in my code.I set navigationView.setNavigationItemSelectedListener(MainActivity.this) too This is my code. MainActivity.java @Override protected void onCreate(Bundle…