Questions tagged [parentviewcontroller]

parentViewController, in terms of hierarchy, is the immediate view controller above the current view controller. When used in conjunction with childViewController, related methods of both facilitates Apple's iOS in order to combine multiple view controllers in a custom hierarchy (similar in concept to the UISplitViewController class)

81 questions
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

How to get a Handle of the Navbar from a view controller inside a container view

I have a container view embedded in a view controller. The container is used to display different view controllers. How can I change the title or add a button to the navigation bar in the parent? Thanks!
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
2 answers

Accessing and manipulating parent view controllers views from a container view IOS

I am making an app where I have a container view that is half the screen of my view controller. From the container view controller's class I am trying to access and manipulate a view that sits out side of the container view. (picture below) I am…
Dnaso
  • 1,335
  • 4
  • 22
  • 48
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]) { …
0
votes
1 answer

if parentViewContoller statement

I'm writing a program with a UITableView with and add button in the Navigation Bar which leads to an edit page. When you click on an item in the table, a view (rView) is pushed with information pertaining to that item. This view has an edit button…
0
votes
2 answers

How do I set the parent view controller as an object so I can call one of it's method?

I need to send data to the parent view controller; so (in the parent) I created a method setLocWithName: loc: to do this. How do I create a object that is the parent controller? I tried parentViewController as well as presentingViewController (as…
0
votes
2 answers

How get class of parent view controller

I have a view controller A that presents has a modal segue which presentes a UINavigationController which has as root view controller another view controller B. How to know the class of view controller A from view controller B? Preferably using a…
Jake Ortiz
  • 503
  • 9
  • 20
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…
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…
0
votes
1 answer

How the correct way to change the actual view controller? On loaded view parent, presented and presentingViewController are null

I have the following structure on my iOS iPad app: RootViewController: Login @property UITabbar *main (which is loaded after login with success); On appDelegate I have two properties: window and login. On the first one I load the UIWindow and on…
0
votes
1 answer

Accessing the superview of the parentview controller

I have a Viewcontroller A, I've added a Viewcontroller B as a subview. B has many childviewcontroller C,D,E. C,D,E are 3 UItableViewcontroller. This is what I'm trying I would like to segue from A to another viewcontroller F when pressed on C , D or…
icekrim
  • 1
  • 2
0
votes
1 answer

iOS call void in parentViewController from MPMoviePlayerViewController when dismissed

How can I call a custom -(void) in the parentViewController of a MPMoviePlayerViewCotroller when is is dismissed?
0
votes
1 answer

How to call presentModalViewController from ParentViewController Method in paging app

I'm using a Page App. I have a viewController A and this have a scrollView with 3 others viewController lets call them ViewController B,C,D and I switch controllers B,C,D using scroller's paging. My problem is: I want to call…
0
votes
1 answer

How to pass an NSString from modal view to parent view

I have a parent view and a modal view with a text box. What I am trying to do is pass whatever is entered into the text box from the modal view and then pass it to a label in the parent view which updates the label to what was entered. I hope that…