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
2 answers

Child View Controller within Parent View Controller

I am making an app where I want to show the child view controller only within the parent view controller i.e. only in 3/4 part of the parent view controller. I have implemented the following code but the child view controller is filling up the whole…
0
votes
1 answer

navigation stack within child view controller

I am putting a UINavigationController inside a container view like so (this in a full screen UIViewController subclass): UIViewController *litteViewController = [[UIViewController alloc]initWithNibName:nil bundle:nil]; UINavigationController…
Jef
  • 4,728
  • 2
  • 25
  • 33
0
votes
1 answer

Is there any way to cover an iOS 7 status bar with a UIView temporarily?

I have a bit of a weird scenario here and have been trying to find some help but the solutions don't really solve my problem rather make it worse. I have a container viewController that has three child controllers views inside a horizontal scroll…
0
votes
1 answer

how to add childViewController in desired orientation

I have a parentViewController in potrait mode and I want to add childViewController(which is a subclass of MPMoviePlaycontroller) to it in a landscape mode this is the code I am using: In ParentViewController.m -(IBAction)playMovie { …
0
votes
1 answer

Root View Controller's child View Controllers are on top of root

I have what is a seemingly simple problem but I cannot find a solution! I have a subclass of UIViewController that is my root view controller, and ten different other UIViewcontrollers that I want to load in as child view controllers when called…
jwade502
  • 898
  • 1
  • 9
  • 22
0
votes
1 answer

iOS Access parent view elements from child view

I have a ViewController1.h/m and SettingsViewController.h/m. In ViewController1.m I have this: ViewController1.h @property (nonatomic, weak) UIView *settingsView; ViewController1.m //alloc init _settingsView SVC = [[SettingsViewController…
0
votes
1 answer

removing childviewcontroller disables gestures in parentviewcontroller when the parentviewcontroller is re-presented

in iOS when I add a childviewcontroller, then remove it - all gestures that overlap have been disabled. For example the parentviewcontroller has a 'longtap' gesture, and the childviewcontroller has a 'longtap' gesture. the parent views longtap…
user1709076
  • 2,538
  • 9
  • 38
  • 59
0
votes
1 answer

How to dismiss keyboard from childViewController which is in containerView in parentViewController?

I need to dismiss keyboard which show itself when I click UITextField from childView. I need to do this in method (scrollViewWillBeginEditing) which is in parentViewController. How can I do it? EDIT: I have method in childViewController: -…
xav9211
  • 191
  • 1
  • 3
  • 14
0
votes
3 answers

Why is child view controller occupies the entire screen?

I'm trying to learn how to make child view controller and face the problem: child view controller I made for some unknown reasuns occupies the whole screen instead of view to which I add it. Here is my super-simple code: CVCChildViewController…
Maria
  • 755
  • 1
  • 11
  • 29
0
votes
2 answers

how do i unload view controllers ? or a least make it run viewDidAppear each time?

i want to "unload" view controllers so they get read each time a user click on them in the uitableview it's a uisplitviewcontroller with childviewcontrollers how is this possible ? -(void)Graviditeten:(int)viewId { UIViewController…
0
votes
1 answer

iOS 5.1 Xcode 5 Child View Controller Orientation did not change

in iOS5 with Xcode5 my application support only Landscape orientation when i add child view controller its on portrait and not rotate to landscape mode??
asmad
  • 387
  • 4
  • 13
0
votes
2 answers

How To Add and Remove UIViewControllers to other UIViewControllers

I have a UIViewController that contains a button. When I press the button I add a child view controller using the following. - (IBAction)loadEditScreen:(id)sender { self.editViewController = [[EditViewController alloc] init]; [self…
ORStudios
  • 3,157
  • 9
  • 41
  • 69
0
votes
1 answer

AddChildViewController issue while adding UITableViewController having UINavigationController

I have this code: navtablecontroller = [[UITableViewController alloc] init]; navtablecontroller.tableView.delegate = self; navtablecontroller.tableView.dataSource = self; CGRect frame = self.view.frame; frame.origin.y = frame.origin.y +…
0
votes
2 answers

How to add a table view to a navigation controller which itself is added as a childviewcontroller to a UIViewController

I have a UIViewController added as a childViewController to a UIViewController. exampleView = [[UIViewController alloc] init]; //Setting the frame of the child UIViewController CGRect frame = self.view.frame; frame.origin.y = frame.origin.y +…
0
votes
1 answer

after dismissing viewController, popViewController won't work

I have stucked in scenario: look at this picture: I have soundPlayerVC as childeViewController of pageContentVC. soundPlayerVC Present mail modalViewController: - (IBAction)emailStory:(id)sender { if ([MFMailComposeViewController canSendMail]) { …