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

View not displaying for childViewController of another ChildViewController

I'm having an issue with a multi-level hierarchy of childViewControllers in iOS/Swift. There are three layers to the current setup from lowest-to-highest: InfoViewController SelectionViewController MainViewController The InfoViewController has a…
0
votes
0 answers

Swift remove from parent controller with completion

I know that in Swift, when dismissing a view controller, I have the option to run some code in a completion block. I.e. controller.dismiss(animated: true, completion: { // code }) Can something like this be done when removing a view controller…
Archie Gertsman
  • 1,601
  • 2
  • 17
  • 45
0
votes
2 answers

dimiss modal and return to presented childViewController in containerView

I am having a bit of an issue with dismissing a modal view presented from a childviewController in a container view. I have a UINavigationController as the rootViewController (MainNavigationController), and present a modal from one of the…
0
votes
1 answer

iOS - How to set imageview of a parent view controller through child container?

I am currently using a container view and I want to change the value of parent view controller imageView through child view controller using delegates, but it always returns nil. import UIKit protocol updateImage { func…
0
votes
1 answer

mvc partial view onsubmit form send data from parent view

I am developing MVC 5 App. I have a Parent View that call a Partial View, where user can Load a Image. On Submit a call a .Ajax defined in Parent view that call Method/Controller. What I need is to send to the controller data I have in Parent View.…
Diego
  • 2,238
  • 4
  • 31
  • 68
0
votes
1 answer

Offset UIScrollView from a child ViewController

I currently have an application with a UI Similar to the Snapchat ScrollView. The MainViewController contains a UIScroll, in which three child ViewControllers are added as child ViewControllers: override func viewDidLoad() { …
0
votes
2 answers

Reload ParentViewController

I have an iPhone application where i'm showing a settings page using modal view [self presentmodalviewcontroller:tempcontroller animated:yes]; When the user finishes the settings he can come back to the previous…
Joy
  • 1,609
  • 3
  • 16
  • 28
0
votes
1 answer

Calling a method from a segmented control to another

Here's the issue: I have a view controller with a segmented control and want to send data from segment A to segment B using a button. At the same time, I need to make segment B active and call a method there. At segment A my data is on a tableView,…
0
votes
2 answers

Initialising parentView of parentView issue

I have a viewController with containerView andUIPageViewController. I'm calling editingProfile method but it won't pass into parentNewCarRequestVC. But once I make an action it passes into parentNewCarRequestVC. So please how I can initialise the…
Luai Kalkatawi
  • 1,492
  • 5
  • 25
  • 51
0
votes
1 answer

Reload TableViewController from parent

I have a TableViewController, lets call it A, that is in a container view of another view controller, B. I need A to reload it's data when a value changes in B. I also need it to get this changed value from B. Any ideas?
user3250926
  • 127
  • 1
  • 2
  • 7
0
votes
1 answer

When make pop to NavigationController, Parent view controller hide

The settings that I have is: UINavigationController -> RootParentViewController Then ParentViewController have a UIContainerView. There I load dynamically content (Other's UIViewController Child). When I make a transition…
0
votes
1 answer

How to pass some variable to parent view controller?

I have a UIViewController its my main view controller. When the app starting that main viewcontroller is loading. Then there is a bar button. When I click on that, another view controller loding like this. LoginViewController *viewController =…
IRD
  • 1,127
  • 2
  • 8
  • 15
0
votes
1 answer

PopUpViewController won't pop up more then once. SWIFT

I have PopUpViewControllerSwift which I want to pop up time after time until the an alreadyMatched index reaches zero. This is how I am performing the pop up, code: var alreadyMatched = [0,1,2] class QuestionsGame: UIViewController { …
0
votes
1 answer

How to change UIImageView as background image on parentViewController using swift

I would like to change my UIImageView I used as a background image on my parentViewController after my childView is loaded in my viewDidLoad, I have this line, that pretty works : self.parentViewController?.view.addSubview(myBackgroundImage) I wish…
Salif
  • 992
  • 1
  • 8
  • 14
0
votes
1 answer

Container View Controller - sending data from child to parent failed

I create my Custom Container View Controller according to Apple’s guide, which means I use no segue. To send data from my ChildVC to my ParentVC I use the following schema. In ChildVC.h typedef void (^ActionBlock)(NSUInteger); @property…
learner
  • 11,490
  • 26
  • 97
  • 169