Questions tagged [viewcontroller]

viewcontroller is a design pattern which is a hybrid of the view and controller components of the MVC architecture

A viewcontroller responds to events by dispatching calls to a mapping table which matches views and controllers with each event target. It is implemented as an object in many frameworks, including:

2792 questions
0
votes
0 answers

Pagination with swipe Gesture swift 3

How to implement swipe gesture between two View Controller and called pagination in it for multiple data loading with swipe and change ViewController with data according to Rest Api data .
0
votes
1 answer

Linking more than one button to the same site xcode

How do I link a button on Xcode to a website? I have one button that works it is a "buy now" button that redirects to a online shop. I need 3 more of these buttons across my app but it is not letting me control drag to the but of code I already…
0
votes
1 answer

How to pass a JSON value from one ViewController to another

I am trying to pass a JSON value to another ViewController, in this case it is the description of the current weather in any city the user wishes to enter. I have it fetching and displaying the JSON data just fine on my main View Controller…
Boi
  • 23
  • 7
0
votes
1 answer

Xcode not showing some of my View Controllers on Commit (GitHub)

I'm new to using github and am trying to put my xcode project on there. The project is actually on github now but its basically a blank project. I want to update it to its current version by using commit but only 3 of my 13 view controllers actually…
Robert Harrison
  • 107
  • 1
  • 10
0
votes
4 answers

Going from Navigation controller to tab controller views

I am developing the iOS app. and it has some design restrictions by the client. So it looks like I have to use navigation controller and the tab controller simultaneously on different number of Viewcontrollers. I can categories my views into 2…
Android teem
  • 780
  • 2
  • 13
  • 36
0
votes
0 answers

Application freezing when moving between navigation pages

I am creating a xamarin forms application on the iOS platform currently using a PCL. In the application output, whenever I switch pages, I get this message: Unbalanced calls to begin/end appearance transitions for…
Peter Cardenas
  • 508
  • 4
  • 13
0
votes
1 answer

View elements not showing up in ViewController

I have this weird issue where I am trying to just display textfields, buttons, programmatically, and nothing is showing up in my view. I've debugged, and set breakpoints and oddly I'm getting that the points are all being executed, but still nothing…
mufc
  • 695
  • 3
  • 16
  • 31
0
votes
0 answers

Failing to instantiate initial view controller programmatically

I am running an XCTest where I am trying to instantiate a UINavigationController as the initialViewController but it is giving me the following error: Could not cast value of type 'ToDo.ItemListViewController' (0x10cce7208) to…
Pigpocket
  • 449
  • 5
  • 24
0
votes
1 answer

AVFoundation Video Camera crashes when returning to view controller Swift 4

I'm creating an app that users AVFoundation to record a video. I have a Login View Contoller which leads to a View Controller (user can see their profile details here) which leads to a Data Collection View Controller (this is where the video camera…
Hardy143
  • 577
  • 4
  • 13
0
votes
3 answers

Why won't Interface Builder change my type of ViewController?

OK, pulling my hair out! Why doesn't my type MoreViewController change when I change the NIB:
jdog
  • 10,351
  • 29
  • 90
  • 165
0
votes
1 answer

How to jump to a specific page in UIPageViewController, setViewControllers not working

I am trying to jump to a specific page on a button press, I have made a ViewController which contains a ContainerView of the PageViewController, so that I can have permanent buttons on top. From there i do: @IBAction func jump(_ sender: Any) { …
Peter Ruppert
  • 1,067
  • 9
  • 24
0
votes
0 answers

Xamarin, UIButton sender doesn't respond

I followed the instructions from Xamarin University (unfortunately they've disabled comments so I can't discuss it with anyone) the first viewcontroller has a storyboard id of "viewController" and the second one I'm trying to switch to has a…
0
votes
1 answer

Get Instance of ViewController from within extension

I'd like to get access to a ViewController from an extension and then override a function from a library which should change variables or invoke methods from a specific ViewController (in this case "ViewController"). How can I do that? Or is there…
0
votes
0 answers

How do I change to another view controller in visual studio IOS (clearly explained)

This is probably a stupid question, but as I haven't found an answer anywhere else I will ask it here. My question is: How can I change which view controller is being viewed. In my case I want the user to open the app, and if the user hasn't…
0
votes
1 answer

Swift Audio passing to another ViewController

override func prepare(for segue: UIStoryboardSegue, sender: Any?) { if segue.identifier == "stopRecording" { let playSoundsVC = segue.destination as! PlaySoundsViewController let recordedAudioURL = sender…
user6305542