Questions tagged [childviewcontroller]

childViewController is Apple's iOS Custom Container View Controller management style. Specifically the -addChildViewController: method facilitates Apple's iOS in order to combine multiple view controllers in a custom hierarchy (similar in concept to the UISplitViewController class)

242 questions
0
votes
1 answer

The uiviewcontroller child of a uiviewcontroller not reacting to touches

I have a UIViewcontroller that have several views and one uiviewcontroller as childs. The uiviewcontroller include a tableview. The child uiviewcontroller has the delegate and datasource methods. I can see the tableview, the delegate build right…
lagos
  • 1,968
  • 3
  • 17
  • 26
0
votes
1 answer

Set nil to child view controllers in viewDidUnload

My iOS app is navigation-based with the following structure: @interface ViewControllerA : UIViewController @property (strong,nonatomic) ViewControllerB *viewControllerB; @property (strong,nonatomic) ViewControllerC…
-1
votes
1 answer

How to show UITabBar after segue on child ViewController?

I have 4 main ViewControllers that are connected to a UITabBarController. These are the 4 main screens of my application. Each of these 4 screens has an icon on the TabBar. Now, from within one of these main screens, I want to be able to click a…
nicksarno
  • 3,850
  • 1
  • 13
  • 33
-1
votes
2 answers

Unwind segues with programmatically created view controllers

I have a view controller (PhotoViewController) which has a child view controller (CameraViewController). In CameraViewController, there is a button that sets off a chain of segueing through other programmatically created view controllers. On the…
-1
votes
1 answer

Resize subview when superview finishes loading

I know theres countless similar questions on this that either all result in using flexible height/width or setting translatesAutoresizingMaskIntoConstraints to false. I have add a view using an extension I created: extension UIView { func…
LateNate
  • 763
  • 9
  • 22
-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
-1
votes
1 answer

How to set child view controller as parent?

I have a collection cell.If am click any cell need to go another view controller. switch (indexPath.row) { case 2: { ElectricianVC *elec=[[ElectricianVC alloc]init]; elec =[self.storyboard…
-1
votes
1 answer

Adding and removing children ViewControllers to UIViewController when ToolBar Button is pressed

I am implementing a UIViewController with ScrollView. In the centre of the view I have a ToolBar like that one in the picture: I have four UIViewControllers to add, one for each button of the toolBar. I do not know if I should init all off them at…
croigsalvador
  • 1,993
  • 2
  • 24
  • 47
-2
votes
1 answer

uitableviewcell with dynamic height child view controller

I have a custom uitableviewcell that has an embeded child view controller. This child view controller uses autolayout and contains another uitableview. I'm trying to render the cell so that the child view controller's tableview is exactly the height…
-2
votes
1 answer

UIPageViewController' s Child View Controller has wrong lifecycle

When i close to UiPageVC, after UiPageVC's viewWillDisappear call, ChildVC's viewWillAppear and viewDidAppear function calls. At the end, UiPageVC's viewDidDisappear works. I need to work ChildVC like normal way. When i dismiss to UiPageVC,…
-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
1 answer

iOS 11 Swift 4 Adding ChildViewController to UISCrollView doesn't take full height

I'm trying to make a snapchat like layout for my app. I have a main viewcontroller with a scrollview. I add 3 viewcontrollers as children of the scrollview. everything works fine on iOS 10 on a iPhone 5C but on iOS 11 on a iPhone 6S, the child view…
-2
votes
1 answer

Removing a childViewController in iOS

I am adding a ChildViewController this way, which opens half the way of screen. m_customStartupView = [[CustomStartUpViewController alloc]init]; m_customStartupView.delegate = self; if(m_showStatus == SHOW_STATUS) { …
Ranjit
  • 4,576
  • 11
  • 62
  • 121
-2
votes
1 answer

How can I access childViewControllers in table cell

I used containerView in static table cell on StoryBoard. self.TableViewCell.childViewControllers[0]; self.ContentView.childViewControllers[0]; self.childViewControllers[0]; These had nothing. I want not to use custom UIViewCell. How can I access in…
-3
votes
1 answer

Pass data from Parent UIviewController to a Container (ChildViewController) every time the value is changed

I have a UIViewController that has two containers and each Container is related to a UIViewController for some specific functionalities. For people who are devaluating my question, it will be more helpful and appreciated if you put me on the right…
Elin
  • 105
  • 1
  • 7
1 2 3
16
17