childviewcontroller Questions

1

I have an app which has UITabbarController as the initial window(after logging-in i set it as rootViewController) This tabbarController has 4 different tabs in it which are all UIViewControllers e...

3

I am having difficulty with the Safe Area when sliding a child ViewController around on an iPhone X in landscape. I have a root ViewController, and one of its views is moveable and contains an em...
Word asked 23/11, 2017 at 21:14

1

I am using a UISearchController inside a Container view in a UITableView. I am adding the search bar like this: self.resultsTableController = [self.storyboard instantiateViewControllerWithIdentifi...
Debrahdebrecen asked 31/3, 2015 at 20:9

0

I'm trying to add an UIViewController as child view controller to the tab bar controller. See code below: guard let vc = self.storyboard?.instantiateViewController(withIdentifier: "MyAlertViewCont...
Centrality asked 7/5, 2019 at 7:29

5

Solved

I created an activity where when one of the text fields clicked it will pop up a child(alert dialog) with list of product but when i click one item on the list I can't display it on the text filed ...
Regin asked 2/9, 2016 at 6:24

3

Solved

I'm trying to add a child view controller to a UIViewController contained in a UINavigationController with this code: - (void)buttonTapped:(id)sender { MyChildController *viewController = [self.st...

4

Solved

A Container View can be easily added into a storyboard through Interface Editor. When added, a Container View is of a placeholder view, an embed segue, and a (child) view controller. However, I am...

7

I'm adding a child view controller to a parent view controller, and everything works as expected, except that child view controller isn't having its usual callbacks triggered. eg, things like viewW...
Daysidayspring asked 24/12, 2013 at 2:15

3

Solved

Say I have a custom container view controller (MainViewController) where I do something like this: - (void)viewDidLoad { [super viewDidLoad]; HomeViewController *homeVC = [[HomeViewController ...

2

Solved

How can I add a view of a child view controller to a custom UITableViewCell? I can add the view like this inside cellForRowAtIndexPath: self.addChildViewController(controlsViewController) cell!.ce...
Labyrinthodont asked 12/6, 2015 at 22:13

2

Solved

I have a Split View Controller and when the user clicks a cell in the Table View, the app shows a View Controller with a Container View and a Segment Control to switch between two children view con...
Pettiford asked 13/9, 2016 at 14:8

3

I want to add a tableViewController as a child view controller of a containerViewController (shown below). According to Apple's View Controller Programming Guide I can achieve this by the following...

3

Solved

What I am Trying to Do: Parent View that is managed by Parent View Controller SHOULD NOT ROTATE. Child View that is managed by Child View Controller SHOULD ROTATE to all orientations. Wh...

3

Solved

Newest Update: I created a brand new project that is built the exact same way as below. However, this test project actually works just fine even though it seems to be the same... One thing I've not...
Noisemaker asked 8/7, 2013 at 17:44

2

I am using the technique provided by this SO answer to preload some URL in SFSafariViewController like this: addChildViewController(svc) svc.didMoveToParentViewController(self) view.addSubview(svc...
Lindsey asked 24/2, 2016 at 9:41

3

Solved

Suppose I want to achieve Pinterest's pin page, like this one: This is my approach: make a UICollectionViewController, pin's page is a UICollectionViewCell cell is make of two components: pin ...
Contentment asked 17/3, 2014 at 4:6

1

Solved

I have read many other threads on this and the Apple docs, but haven't found a solution yet for my particular problem. My app uses a UITabBarController as the rootViewController, and in one of the...
Urchin asked 1/8, 2015 at 11:39

3

Solved

To create from code a parent/child relationship between 2 view controllers basically it's just matter of doing something like: [self addChildViewController:childViewController]; [self.view addSub...

0

Basically I'm trying to resolve the same problem as this question is asking. However, when I am running the app on iOS 8, everything is working as expected: the child view controller is using its o...
Collateral asked 19/1, 2015 at 12:13

3

Solved

I have created a sideview like menu for the iPhone for which I have used container ship concept for adding child view controller in the parent view controller. When user taps on menu button on the ...

5

Solved

I have been trying to add view container with leaving 20px space from the sides. But it seems not the proper way of doing it... // ADD CHILD VIEW CONTROLLER [parentViewController addChildViewCo...
Impale asked 5/12, 2013 at 2:36

1

I have created and drawn out a custom UIViewController called AutocompleteVC in my Main storyboard. AutocompleteVC will be used in several different places/storyboards and with different dimensions...

1

Solved

This is a serious problem for me right now. Working on a code base with multi-layered children viewcontrollers about 4-5 layers deep - this is a tablet app with a very high degree of decoupling bet...
Impressible asked 30/7, 2013 at 19:35

1

Solved

I'm experiencing some difficulties doing a rather simple thing, I'm missing something but don't see... I reproduced the issue with a very simple App (using IB) : App's main ViewController is a U...
Prakrit asked 5/1, 2013 at 15:59

1

Solved

I am trying to add a UINavigationController as a child view controller and then give it a smaller frame than its parent. However, changing the navigation controller's frame does not properly change...
Azilian asked 24/11, 2012 at 18:45

© 2022 - 2024 — McMap. All rights reserved.