Questions tagged [navigationcontroller]

A Controller in a MVC (Model View Controller) pattern provides the execution flow of the application. NavigationController is about this flow.

A Controller in a MVC (Model View Controller) pattern provides the execution flow of the application. NagigationController is about this flow in a technology that can apply the MVC pattern.

507 questions
3
votes
2 answers

UI freezes after re-entering Detail-VC during URLSession Background-DownloadTask

Using Swift-4.0.3, iOS-11.2, Xcode-9.2, iPhone-6S (or Simulator-10.0) Since about a week I try to figure out what the problem is with the following issue: The UI freezes whenever you re-enter a ViewController that involves a…
iKK
  • 6,394
  • 10
  • 58
  • 131
3
votes
1 answer

presentViewController has no navigationController swift

My transition to the next view is like this: if let navigationController = navigationController { if let storyboard:UIStoryboard = UIStoryboard(name: "myStoryboard", bundle: nil) { if let vc =…
kuzdu
  • 7,124
  • 1
  • 51
  • 69
3
votes
2 answers

dark grey layer appears on the top of my webview with navigation controller

I've a UIWebView. Everything is fine if I don't add navigation controller. But If I add, a dark grey layer on the top of my uiwebview appears. I don't understand what is wrong, I'm just adding a uiwebview and haven't written a line of code about…
amone
  • 3,712
  • 10
  • 36
  • 53
3
votes
1 answer

iphone get back button text

Sorry for the another newbie question. I tried to get the back button text value in viewDidLoad but it always displays null when I navigate through controllers. NSLog(@"-----------> %@ ", self.navigationItem.backBarButtonItem.title); How to get the…
tom_987
  • 91
  • 1
  • 1
  • 4
3
votes
3 answers

restoring iOS app to original state and clearing all data when user logs out

i have an app with a signin viewController which modally presents a tabBarController containing several tabs. Each tab has a navigationController and a stack of views. One of those tabs is for settings and has a logout button. when the user…
alionthego
  • 8,508
  • 9
  • 52
  • 125
3
votes
5 answers

How to hide back button title on iOS7 with NavigationController

I have a NavigationController based iOS7 app , on this I want to hide the back button text which is displayed along with the chevron. Is there a way out to this ? I tried setting empty string to the back button title , tried empty title on previous…
vishal dharankar
  • 7,536
  • 7
  • 57
  • 93
3
votes
2 answers

Passing request params in play scala

I am new to play framework (scala), and I still getting my way through my first web application. I just created a first method in my controller, index: def index = UserAwareContextAction { implicit request => val subset =…
3
votes
3 answers

How do a ViewController knows it got focus on iOS? Like a "viewDidLoad"

I have a NavigationController and one of the tabs is supposed to load a ViewController. This ViewController (1), when loaded on "viewDidLoad" does some stuff and then pushes a new ViewController (2). The thing is that after ViewController (1) has…
RickON
  • 395
  • 7
  • 18
3
votes
1 answer

viewController's dealloc don't be called when called navigationController popViewControllerAnimated

I have a MyViewController, it's based on UIViewController, and I used it like the following code: MyViewController *nextViewController = [[MyViewController alloc] init]; [self.navigationController pushViewController:nextViewController…
2
votes
0 answers

Orientation of a navigationController in a TabBarController doesn't work like it should

This is the situation The label-viewcontroller is able to change orientation, the viewcontroller with the "ok?"-button is only able to be viewed in portrait. This works PERFECT, when I'm at the label-viewcontroller, in landscape, and I go back to…
2
votes
0 answers

self.navigationItem setHidesBackButton:YES acting inconsistent

I am trying to hide the navigation bar 'back' button during an animation. When the animation completes, the button re-appears. my code is as follows: - (void) animateResults { [self hideNavBarButtons]; [self animatePlayer1]; [self…
edhnb
  • 2,122
  • 3
  • 24
  • 38
2
votes
1 answer

Error: Hilt Fragments must be attached to an @AndroidEntryPoint Activity

Fragment is not loading in Unit Test. Code: @RunWith(AndroidJUnit4::class) class DataFeature { @Test fun testEventFragment() { val fragmentArgs = bundleOf("test" to "100") val scenario =…
2
votes
4 answers

iOS4 how to restart view controller

I wish to restart a view controller. What I've done is to pop the current view controller off the navigation stack, and push a new instance of the view controller onto the stack. However, this does not work. The current view controller is popped off…
russell
  • 111
  • 1
  • 7
2
votes
3 answers

iOS: How to properly use Navigation Controller without any visible user interface

I have an application that seems best suited for a navigation controller. There are a few places where navigation splits off and is not completely hierarchical but I think I can remedy that just using a modal view at those points. I want to know…
gonzobrains
  • 7,856
  • 14
  • 81
  • 132
2
votes
1 answer

Open specific view on receiving Push Notification

I have UITableView as my rootViewController and I populate that table with parsed RSS (there's a Parser class where my rootViewController is its delegate). In the rootViewController I have methods for refreshing RSS refreshData and I keep my…
luigi7up
  • 5,779
  • 2
  • 48
  • 58