Questions tagged [parentviewcontroller]

parentViewController, in terms of hierarchy, is the immediate view controller above the current view controller. When used in conjunction with childViewController, related methods of both facilitates Apple's iOS in order to combine multiple view controllers in a custom hierarchy (similar in concept to the UISplitViewController class)

81 questions
0
votes
1 answer

return data from a Modal View Storyboard iOS 5

I am currently working on a app which will create a modal view, and I know how to send data to the modal view, but how do I have the modal view to send data back to the parent view?
-1
votes
1 answer

adding one view contoller as a child of another view controller in objective-c

I need to know how to add one view contoller as a child of another view controller in objective-c. As of now I am presenting a view controller as a modal of the rootview controller. But I want to change it now. I have 2 view controllers which…
jessy
  • 491
  • 3
  • 7
  • 19
-1
votes
2 answers

delegation and passing data back from childViewController

I have been struggling with this for a few days and have received valuable help on the way from S.O. I have made the simplest possible project to reduce the possibilities of it being a typo. All my project is, is a ViewController that holds a…
Paul
  • 1,277
  • 5
  • 28
  • 56
-2
votes
2 answers

Ambiguous reference to member 'first(where:)' error when referencing child view controller

I am writing an iOS application and have a child view controller that I am trying to reference. The child view controller is the delegate of the parent. At the top of the parent view controller, I have: fileprivate var cameraViewController:…
jordan
  • 69
  • 6
-2
votes
3 answers

Objective check which view the user has just come from

I have an Application where you can go to one view from two controllers and I was wondering whether it was possible to check which it came from so that I can do different things depending on the controller it came from. Thanks in advance
Hive7
  • 3,599
  • 2
  • 22
  • 38
-3
votes
1 answer

How to pass a Json array value from parent viewcontroller to child viewcontroller using alamofire in swift

I am getting Json response in my parentviewcontroller and I want to pass the array value from that response to a childviewcontroller.
1 2 3 4 5
6