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
1 answer

string to another view

I've followed tutorial from passing data between classes did it, and is working fine, but I really need to send some string value (a date) to another view, (is simple I know but Im a noob for this!), so my problem is that I need to send this…
manuelBetancurt
  • 15,428
  • 33
  • 118
  • 216
0
votes
1 answer

Swift 4: Unable to push ViewController upon button click.

I am going to do my best to explain my problem, so thanks in advance. I usually build applications with many view controllers by having each ViewController represent a different view. Right now, I am creating a large application with many different…
0
votes
1 answer

Binding UITableViewCell with ViewModel and updating the ViewController ViewModel?

I have registed viewModels for every UITableViewCell. I update viewModel of cell with user interactions. As the viewController contains the array of viewModel and allocates the viewModel on cellForRowAt. I need to reload the cell. How can i update…
coreDeviOS
  • 1,468
  • 2
  • 14
  • 27
0
votes
1 answer

'Storyboard doesn't contain a view controller with identifier 'TimeController'' error in Swift

I am trying to send an Int from one view controller to another in swift, but I am getting this error. There is another post on this same topic, but the advice given is to 'clean' the project which does not work for me. Here is my code: First view…
Bob Samuels
  • 53
  • 10
0
votes
1 answer

First present view controller and then push child view controllers

Is there a trick to push to child view controllers from a parent vc that previously has been presented modally? Method to present parent that I'm using: let parentVC = ParentController() self.present(parentVC, animated: true, completion:…
rantanplan
  • 243
  • 3
  • 17
0
votes
0 answers

Admob ad dismissing after open

In my code I call this code to show admob interstitial: if (interstitial != nil) { if ([interstitial isReady]) { auto rootViewController = [UIApplication sharedApplication].keyWindow.rootViewController; [interstitial…
Michael A
  • 5,770
  • 16
  • 75
  • 127
0
votes
1 answer

Clipping issues when picking from uiimagepicker

I have been dealing with this issues for a few days now trying to figure out why images are clipping whenever I pick from the uiimagepicker. I have this button in my view controller that will take on the image that is chosen from the uiimagepicker.…
0
votes
2 answers

Unzipping Error The operation couldn’t be completed. (Zip.ZipError error 1.) between ViewControllers

I download a .zip file from a URL in ViewControllerA, and put it in the documents directory using: let documentsUrl:URL = (FileManager.default.urls(for: .documentDirectory, in: .allDomainsMask).first as URL?)! let destinationFileUrl =…
Usama Aftab
  • 47
  • 1
  • 9
0
votes
1 answer

Swift 4: Presenting ViewControllers with a UIView as the frame

I am going to do my best to explain my problem, so thanks in advance. I usually build applications with many view controllers by having each ViewController represent a different view. Right now, I am creating a large application with many different…
Chandler Long
  • 77
  • 2
  • 11
0
votes
1 answer

Why "Objective-C exception thrown. Name: NSInternalInconsistencyException Reason: Could not load NIB in …" in xamarin ios

I am new in xamarin ios, my app is crashed when running the app and throws an exception "Objective-C exception thrown. Name: NSInternalInconsistencyException Reason: Could not load NIB in …".How can I manage it.. Please help me... Here is my code…
Swathy
  • 199
  • 1
  • 5
  • 24
0
votes
2 answers

View Controller value passing

I have an iOS application that has Controller A, which uses a tableview that adopts the 3D touch protocol. Each cell actually adopts this 3D touch so when selecting a cell, it will bring a modal view controller (Controller B). This controller B is…
Samarey
  • 722
  • 1
  • 7
  • 17
0
votes
2 answers

Presenting View Controllers with a different view depending on which option is selected: Swift 4

I am going to do my best to explain my problem, so thanks in advance. I usually build applications with many view controllers by having each view controller represent a different view. Right now, I am creating a large application with many…
Chandler Long
  • 77
  • 2
  • 11
0
votes
1 answer

How to display local notifications with iOS on Flutter application?

I'm working on a Flutter application. I'm trying to display local notification in background. I know it's not possible to run dart code in background currently. So I'm trying to display these notifications with iOS. To display these notifications, I…
camilleB
  • 1,961
  • 4
  • 15
  • 20
0
votes
1 answer

ViewController instance doesn't get deleted?

I am facing a really mind-breaking problem.. So my application was working just fine, until now.. The app has a TabController: with 5 viewControllers On this TabController I have a timer that fetches data every 10 seconds This data is being sent…
Kárpáti András
  • 1,221
  • 1
  • 16
  • 35
0
votes
0 answers

Strange behaviour upon reloading a page in iOS app

In my viewDidLoad method I call a method [self get_shcedule];. This gets some values and stores in an array. NSArray *filteredArray = [[jsonArray filteredArrayUsingPredicate:predicate] valueForKey:@"hour"]; In the same viewController I have an…
humble_pie
  • 119
  • 10
1 2 3
99
100