Questions tagged [uivewcontroller]

35 questions
8
votes
1 answer

UIImagePickerController & view is not in the window hierarchy

I have a simple Swift project in which: ViewController A (class ViewController: UIViewController) presents ViewController B -- (class WebViewController: UIViewController, WKNavigationDelegate, CLLocationManagerDelegate,…
Dan
  • 4,197
  • 6
  • 34
  • 52
6
votes
8 answers

ViewDidLoad executes slowly while pushing viewcontroller

I was trying to push a viewcontroller B into navigation controller from A and then assigning some properties of B in A. In this case, the assigning of properties was done and then viewDidLoad of viewcontroller A was executed. Here, assigning…
satyanarayana
  • 265
  • 4
  • 14
3
votes
5 answers

How do I manually set the "Back" destination in iOS apps

I have a UIViewController called 'detailViewController'. This view controller is accessed through multiple different segues using the push segue. The problem I am facing is that the back button on the detailViewController takes the user back to the…
Peter Stuart
  • 2,362
  • 7
  • 42
  • 73
2
votes
0 answers

How to dismiss a modal view controller by sliding (aka panning) it down?

I have a modal view controller that I want to be able to dismiss by sliding the view down. I want it to snap back to the top if I didn't slide it down enough and let go. How would I go about doing it?
Sam
  • 1,288
  • 1
  • 13
  • 22
2
votes
7 answers

Data is not transferred to next view Controller

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { NSLog((@"This is didSelectRowAtIndexPAth")); DetailViewController *detailViewController = [[DetailViewController alloc] init]; …
Vishal
  • 101
  • 1
  • 12
1
vote
1 answer

How can I clear WKWebView when trying to add a new webView from unwind segue?

I have an app that uses at WKWebView to display local file paths. It segues to another view controller, then unwinds to the original controller, with a new html file path. I have got it loading the new file path but only after the index file flashes…
1
vote
1 answer

SpriteKit View not presenting Scene in ViewController's viewDidLoad

Goal: A red rectangle (of class Brick) should appear in a blue background with node count and fps. Reality: Gray background and node count and fps (e.g. no red rectangle or blue background) I have the following code: GameViewController import…
Fine Man
  • 455
  • 4
  • 17
1
vote
1 answer

redraw view off screen - contains picker view and tool bar

Im trying to draw/place a view (which contains a picker view and a toolbar offscreen). On launch the View is still on the screen despite changing its coordinates in viewDidLoad. self.pickerViewContainer.frame = CGRectMake(0, 722, 320, 207); Im…
DevC
  • 6,982
  • 9
  • 45
  • 80
1
vote
5 answers

error when i am calling next view controller

i am getting an error when i am calling next view controller, i want to call a view controller that a action continue .this screen will come appear first time only when we run first time. controller is not going next view. -(void)viewDidLoad { …
square
  • 162
  • 2
  • 13
1
vote
2 answers

Creating a segue programmatically to return to child view and load new instance of scroll view

I have created a project which uses page control. I used a tutorial to be able to do this. (link to the tutorial: http://www.wannabegeek.com/?p=168) However each page that I have created in my page control has a button which will take me to another…
1
vote
1 answer

GCD, order of execution?

Assume we have one UIVewcontroller, call it A, in the viewdidload of that VC we add to it two UIViewcontrollers( B,C ). now to make the UI smooth in the Viewdidload of A we do some GCD work dispatch_queue_t queue =…
Huang
  • 1,355
  • 2
  • 11
  • 28
1
vote
1 answer

GCD, queues affecting child UIViewcontrollers, reentrant

Assume we have one UIViewController, call it A, in the viewDidLoad of that VC we add to it two UIViewControllers( B,C ). now to make the UI smooth in the viewDidLoad of A we do some GCD work dispatch_queue_t queue =…
Huang
  • 1,355
  • 2
  • 11
  • 28
1
vote
2 answers

UIViewController not showing background after segue

Storyboard: Simulator before segue with view (which is connected to a tab bar controller) showing correct background: A tap on any of the icons causes a push segue but the background is white, when it should be blue: I'm using AQGridview and the…
Robert
  • 5,278
  • 43
  • 65
  • 115
1
vote
2 answers

How to show a uiview alway on top?

I want to show a logo UIView always on top when the app running, I know there is a way to do that,add same UIView to every UIViewController, but I think this is not the best way to do that. when i have lot of pages,and modify the logo UIView,must…
yellow
  • 702
  • 1
  • 10
  • 24
0
votes
1 answer

Passing data from JavaScript to Swift. UserContentController function never called problem

I am getting stuck, the function "userContentController" is never calling. userContentController function func userContentController(_ userContentController: WKUserContentController, didReceive message: WKScriptMessage) { print("Function…
imran0001
  • 1
  • 1
1
2 3