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)
Questions tagged [childviewcontroller]
242 questions
2
votes
0 answers
Present ViewController over current context but the presenting View controller should take control of user interraction
I am presenting a bottom banner over the current context:
self.bottomViewController.modalPresentationStyle = .overCurrentContext
self.present(self.bottomViewController, animated: true, completion:{
…

iOSGeek
- 5,115
- 9
- 46
- 74
2
votes
2 answers
How to retain child view controller (container implementation) after moving back to parent?
I need to retain child view controller after its dismissal to move it back when needed without extra processing in child view controller. I have tried achieving it using below…

Ruchit B
- 23
- 4
2
votes
2 answers
Container View Controller Programmatically
I have been researching this for a while but can't quite find what I need. I would like to learn how to create a container view with a child view controller programmatically. I'm still fairly new to this and learning the basics, but from what I…

Paul
- 1,277
- 5
- 28
- 56
2
votes
3 answers
Passing data back from child view controller
I am a beginner, and I have a project in which I need to pass data back from a childviewcontroller. Specifically, I have a picker view in my container and I want to be able to use it to select an option (say to simplify just a color to chose from an…

Paul
- 1,277
- 5
- 28
- 56
2
votes
1 answer
Add common views once in navigation controller
What I'm trying to achieve is to design my "shared" part of UI in interface builder and use child view controllers to show content to the user. This may sound as trying to reinvent UINavigationController, but it is not. In fact, the whole thing is…

Losiowaty
- 7,911
- 2
- 32
- 47
2
votes
2 answers
UITableViewController as dropdown?
I would like to create a UITableViewController as a dropdown on clicking a UIButton.
I have created one using addChildViewController but I cannot remove it by clicking the button a second time.
The code I used:
var flag = 0
func filter(sender:…

codedreamer
- 35
- 3
2
votes
3 answers
Shall I really use addChildViewController when I add a view to another view (and both these views are controlled by view controllers)?
I am building a UIViewController with a XIB. In this XIB, I have placeholders (UIView objects in the XIB) in which I place other views, from other view controllers. (By the way, I could also add these views directly, without placeholders)
I am not…

Colas
- 3,473
- 4
- 29
- 68
2
votes
2 answers
Adding child view to UITabBarController not call viewWillAppear
I have tab bar based application (iOS 7.1 SDK). When user start app at first time, I want show some login screen. I decided to use view controller containment (this is called in first view controller of tab bar controller):
LoginViewController *vc =…

lukasMT
- 41
- 3
2
votes
0 answers
iOS6: willMoveToParentViewController not being called when setting views on UINavigationController
Too much code to copy here, but I have this situation:
myNavigationController.viewControllers = @[myViewController];
In iOS7 myController willMoveToParentViewController is called as expected.
In iOS6 it is not called.
I've bene debugging this for…

drekka
- 20,957
- 14
- 79
- 135
2
votes
2 answers
Storyboard to design off screen subview
I want to use Storyboards to design content for a slider, and it seems like an easy way to design offscreen content is to use a childViewController. So I've done this
myViewController = [[UIStoryboard storyboardWithName:@"ipad" bundle:NULL]…

Tommy Nicholas
- 1,133
- 5
- 20
- 31
2
votes
2 answers
is it possible to draw a shadow behind a child view controller using a view's CALayer in iOS 7
Is it possible to draw a shadow behind a child view controller using a view's CALayer in iOS 7. I have not worked with the CALayer code before, but have found various examples on the internet and non of them are working. I could be missing a finer…

user1974633
- 59
- 5
2
votes
3 answers
Trying to add a Tableview inside of a UIView. What am I doing wrong here?
I'm not sure how to approach this. I'm loading a separate table view controller nib file to my viewcontroller. How do I position it the way I want? Also, Is the below query all I need, or am I missing something? It keeps crashing on me.
-…

user3783961
- 59
- 1
- 8
2
votes
1 answer
iOS ChildViewController in UINavigationController = show StatusBar
I have stumbled across a weird problem when implementing a view container which is connected with child view controllers.
The hierarchy is the following:
I have a UISplitViewController and in the MasterViewController I added a view container which…

Bins Ich
- 1,822
- 6
- 33
- 47
2
votes
1 answer
iOS Accessing Property in parentViewController
My app is crashing when trying to access a method in my parentViewController. Here is the layout in StoryBoard
MainViewController = STLMMainViewController (ParentViewController)
Scene1 = STLMTimeDateViewController (ChildViewController)
Here is the…

user1107173
- 10,334
- 16
- 72
- 117
2
votes
1 answer
Add UISplitViewController via addChildViewController
I have one UIViewController in which another viewcontroller(1) and splitviewcontroller(2) do switching via addchildviewcontroller method. So when I add splitviewcontroller it doesn't handle correct the rotations. Look at the video –…

user125559
- 21
- 1