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
0
votes
1 answer
How to improve efficiency with AddChildViewController
I am using AddChildViewController and adding a CalendarViewController, here is the code to add it
- (void)calButtonClicked
{
m_calViewController = [[CalendarViewController alloc]initWithNibName:@"CalendarViewController" bundle:nil];
…

Ranjit
- 4,576
- 11
- 62
- 121
0
votes
0 answers
Rotate device loads childViewController, app slows down
I have an storyboard with 4 view controllers. 1 - initialViewController 2 - PortraitViewController 3- LeftLandscapeViewController 4 - RightLandscapeViewController.
When the device rotates, a new viewcontroller is loaded as a childViewController and…

Eric
- 157
- 1
- 11
0
votes
1 answer
Delegate not respond - how to debug
I create a delegate on my view controller, this is my code:
FirstController.h
@protocol FirstControllerDelegate;
@interface FirstController : UIViewController
@property (nonatomic, strong) id< FirstControllerDelegate > delegate;
@end
@protocol…

francesco.venica
- 1,703
- 2
- 19
- 54
0
votes
3 answers
View Controllers view only added once
I'm having a main view controller containing a UIScrollView called containerScrollView. This scrollview has on each page another scrollview with the size of the screen containing two view controllers: MessagesViewController and…

yoeriboven
- 3,541
- 3
- 25
- 40
0
votes
1 answer
Present ModalView from ChildViewController
In my rootViewController , on click of a button I add a childViewController called shareViewController this way
[self addChildViewController:m_shareViewController];
[[self view] addSubview:[m_shareViewController view]];
[[[[UIApplication…

Ranjit
- 4,576
- 11
- 62
- 121
0
votes
1 answer
Child view controller being partially shown under parent view controller's navigation bar
When running my app on ios7 I noticed that my child view controllers had a point of origin that started under its parent view controller's navigation bar, this wasn't the case on ios6.
This is the code that I'm using when adding the child view…

wibosco
- 967
- 1
- 11
- 32
0
votes
1 answer
Subview not closing causing Memory Leak Phonegap
I am having issues not being able to close CDVViewController when calling this custom refresh, it stays loaded in the background and loads a new one causing memory leaks/high memory usage. I have tried to use both release and removeFromSuperview for…

Jason G
- 309
- 3
- 14
0
votes
2 answers
Reloading UITableView Container from method
I am trying to reload my tableview with the parameters received from changing a UIDatepicker. Currently I have the following method that captures the data and sends it to the UIButton (which works). I am trying to reset the container view that…

memyselfandmyiphone
- 1,080
- 4
- 21
- 43
0
votes
1 answer
Interactive UITableViewController in container
Working on and iOS app I currently have set up of:
RootViewController hooked up to a UITableViewController via
[self addChildViewController:tableVC];
With the tableVC.view as a subview of the rootViewControllers view. The RootVC then has a…

BradStevenson
- 1,974
- 7
- 26
- 40
0
votes
1 answer
Transitioning between two child view controllers within a UITabBarController
I have a UITabBarController as the rootViewController of my app, and, in addition to the viewControllers corresponding to the tab items of such UITabBarController, I have two more viewControllers whose view I want to be a subview only for certain…

AppsDev
- 12,319
- 23
- 93
- 186
0
votes
0 answers
iOS - Displaying child view controllers instantly with parent view controllers
I multiple view controllers that will be displaying a dynamic view controller on a button click, here is how my view controllers are laid out:
The "calculationView" view does not display anything until the "Start" button is pressed.
When the user…

Archon
- 182
- 9
0
votes
1 answer
UINavigationController as child of UINavigationController
I don't know if the title explains the question itself but here it is ...
I have a UINavigationController which is the parentViewController of a UINavigationController. The thing is the childViewController behaves strange, when I add it as a child…

Herz Rod
- 831
- 8
- 21
0
votes
4 answers
Best way to send a message to multiple children view controllers
I implemented a custom UIViewController which has multiple child view controllers (mainly by using the storyboard's Container View but not only).
I'm wondering what is the best way for the "root" view controller to send a message to its children,…

Guillaume Algis
- 10,705
- 6
- 44
- 72
0
votes
3 answers
Cocoa: Can't remove child view controller
I load the view of my main view controller. This main view controller then adds 2 child view controllers (split view: master and detail). When I log the number of child VCs right after adding them in the init method I get '2' as an output.
When I…

Elias Atahi
- 179
- 2
- 4
- 16
0
votes
1 answer
user interaction enabled subviw in scrollview
I have a ScrollView that contains a ContainerView. The ContainerView contains another View that the user is supposed to be able to pan around in.
The scrollView scrolls vertical only, the "view inside the containerView" is panable in all…

HeikoG
- 1,793
- 1
- 20
- 29