Questions tagged [uinavigationitem]

on iOS, the UINavigationItem class encapsulates information about a navigation item pushed on a UINavigationBar object’s stack

UINavigationItem is a part of the UIKit framework and is available from iOS 2 and later. The UINavigationItem class encapsulates information about a navigation item pushed on a UINavigationBar object’s stack

UINavigationItem Class Reference

1143 questions
-1
votes
1 answer

Custom button as leftBarButtonItem

I'm using this code to display a custom button as leftButtonItem: let button = UIButton(type: .system) button.setTitleColor(.white, for: .normal) button.setImage(UIImage(named: "Back"), for: UIControlState.normal) …
-1
votes
1 answer

Container view is getting hidden under Right Navigation Bar button Item,SWIFT iOS

As per previously implemented code there is a navigation bar with static Image (A bell icon) on top of this is a Custom container view with a label has been added to show the notifications which are dynamic. Issue is that the container view is going…
-1
votes
1 answer

Three dots appears in navigation icon iPhone when clicking the right bar button

When I click on the right bar button three dots are being appeared on the right of left bar item that is navigation icon, Help me to remove these three dots and let me know why these dots appear even there is nothing alongside the navigation icon…
iOS Developer
  • 311
  • 4
  • 25
-1
votes
2 answers

swift Menu item on UINavigationController is disappearing when open segue

I have a UINavigationController with 2 buttons (menu item). When I open segue and move to detail-view, the buttons disappear--just the back button appears. I need to keep the menu item on the left:
Moham Qmaizer
  • 129
  • 1
  • 1
  • 9
-1
votes
2 answers

Cant center UILabel in titleView of navigationItem iOS8

Im having trouble setting a programmatically allocated UILabel to be centered in my NavigationItem's titleView. Im even setting the NSAlignment to be NSAlignmentCenter. Here's an image of what it looks like: As you can see.. I have no right…
Chisx
  • 1,976
  • 4
  • 25
  • 53
-1
votes
1 answer

Objective c i want to hide my navigationbar but i want to show navigationItem's rightBarButtonItem

i am new in objective-c .I am trying to hide navigationbar i used this code and it's work perfectly but problem is this when i hide navigationbar after i am failed to show navigationItem's rightBarButtonItem -(void)viewWillAppear:(BOOL)animated { …
Ferrakkem Bhuiyan
  • 2,741
  • 2
  • 22
  • 38
-1
votes
1 answer

Fill Color gap between Navigation bar and Carrier details in Swift

Attached screen shot shows clear gap between carrier details and Navigation bar, How to fill the same red color and change the text of carrier details , time displayed to white color ?
Badrinath
  • 325
  • 1
  • 7
  • 25
-1
votes
1 answer

Switch from one view controller to another - IoS

I am trying to achieve the following. I have a navigation right bar item created programatically. Now i have a new view controller B. On click of right bar menu item i need to go to view controller B which is not connected through a segue. I want B…
-1
votes
1 answer

how can i hide a right navigation item of viewcontroller from a uiview class

I have a navigation controller in a class, and i have a uiview class, now i need to hide the navigation item of view controller on click of a button in uiview class, because its a uiview class, am unable to access…
-1
votes
1 answer

Showing the UINavigationController and the back button

I am having an issue which I am not able to solve and I am sure that the solution is very simple. I define a UINavigation controller in my AppDelegate and show the navigation bar on top of the main ViewController with the App name as title . This…
-1
votes
2 answers

UINavigationController popViewControllerAnimated issue

I have LoginViewControllerIphone instance , where I push the instance of TasksRootViewControllerIphone then in TasksRootViewControllerIphone (10 seconds after appearing) I call [self.navigationController popViewControllerAnimated:YES]; And receive…
-1
votes
1 answer

Disable a Navigation Bar Button upon Application Launch

I have an application that requires to select a client to work with when the application is launched. I am initiating a segue from the app delegate to a modal view that allows the user to make the selection. The view has a left bar button that says…
Erik Godard
  • 5,930
  • 6
  • 30
  • 33
-1
votes
2 answers

Navigation Bar Button Hide When animation set as YES

I am setting Back and next Button as Navigation Bar item left button and right button.which have code below as // Back Button UIBarButtonItem *aBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:aButton]; [aButton addTarget:self…
-2
votes
1 answer

Custom Navigation Title - SWIFT

I would like to customize my navigation title but run into a problem. "String is not identical to NSObject". Can someone point me in the right direction? My code is below, let font = UIFont(name: "HelveticaNeue", size: 15.0) let textFont =…
Jaxs_ios
  • 48
  • 10
-3
votes
1 answer

ios - switch within navigation item bar

I want to set a UISwitch within a UINavigationBar. But when I try place my finger on the switch and drag it to "switch" on and off the view is not responding. This is what i have. https://github.com/rchampa/views-within-navigationItem
Ricardo
  • 7,921
  • 14
  • 64
  • 111
1 2 3
76
77