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
1
vote
1 answer

UINavigationBar with UISegmentedControl partially covers childViews

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 tabs I have a UISegmentedControl in the…
koen
  • 5,383
  • 7
  • 50
  • 89
1
vote
1 answer

How to show animation to a child view as it is appears in a UIViewController

I Have one View COntroller. on which i have a segment control. and a containerView. in that container view i am showing tableviewcontroller. as a child view. I have a segment control. And 2 UITableViewControllers.Which are child views to the view…
1
vote
2 answers

How to slide child view controllers contained inside a UIViewController in iOS?

Here's my current screen: This screen consists of a UIViewController with programatically created buttons Current Bookings and Old Bookings. I have the logic on how to make the tapped active by adding a UIView as a subview to the UIButton. All the…
Suyash Shetty
  • 513
  • 3
  • 8
  • 17
1
vote
0 answers

"Warning: Attempt to present... on... whose view is not..." issue when presenting from a childVC --

In short, I'm presenting a view from a childVC that's just been added to the view hierarchy, but apparently it hasn't been added to the window hierarchy yet. I've just started this project and set it up as a page-based project. The boiler for the…
OdieO
  • 6,836
  • 7
  • 56
  • 88
1
vote
2 answers

How to create transparent, modal UIViewController on iPhones iOS7+?

I have a relatively simple question that I can't seem to figure out. I'm inside of a UIViewController (myViewController) that's embedded somewhere inside a UIViewController hierarchy (somewhere underneath a parent…
1
vote
0 answers

Crash while posting an accessibility notification to the view of a child view controller

On the #viewDidAppear of a "ContainerViewControler", posting a UIAccessibilityScreenChangedNotification causes an intermittent crash with an Exception Type: EXC_CRASH (SIGABRT). -(void)viewDidAppear:(BOOL)animated { …
qnoid
  • 2,346
  • 2
  • 26
  • 45
1
vote
1 answer

Using [self.view removeFromSuperview] in UIView animation completion block removes view immediately

Fixed It turns out the animation was being called twice. I've now fixed it so the animation is only called once and it works perfectly. I suspect it might be something related to my use of child view controllers, but I'm noticing some strange…
1
vote
1 answer

How to change value for UITextField and UISwitch from childViewController in parentViewController

I found a lot of how to use methods of chlidViewController. But I couldn't find how to change and set value of uitextfield and uiswitch from childViewController. ChildViewController.h: @protocol VVInformationTableViewControllerDelegate; @interface…
xav9211
  • 191
  • 1
  • 3
  • 14
1
vote
2 answers

Overlay a UITableView with another UITableView

I have a problem in the iOS application, I am currently working on: My main goal for the moment is to present a smaller UITableView overlay over the UITableView main, when a UIButton in a UITableViewCell of main gets clicked. I thought this should…
1
vote
1 answer

AnimateWithDuration disables userInteraction on UIView

I'm adding a child view on top of one of my views, and animating it so that it starts at the bottom of the screen and ends up at the top of the screen by using animateWithDuration. And that all works fine except that after animateWithDuration is…
shadowarcher
  • 3,265
  • 5
  • 21
  • 33
1
vote
1 answer

Several view controllers in one view controller

I am using a view controller that has several containers in it, and each container has its own view controller. I want to know if [topMostViewController removeFromParentViewController] will also remove all of its children, so that I don't have any…
Lena Bru
  • 13,521
  • 11
  • 61
  • 126
1
vote
1 answer

iOS7 present childViewController similar to MFMailComposeViewController for iPad

One of the view controllers in my iPad app is a questionnaire form. I'm trying to present it so that it appears in a childViewController modal segue just like the default segue for MFMailComposeViewController. This is the look I am trying to…
denvdancsk
  • 3,033
  • 2
  • 26
  • 41
1
vote
0 answers

childviewcontrollers transparency in containerviewcontroller

I have two childViewControllers X & Y added to a parentViewController A. The views of X & Y are added to A as subViews. X has a UILabel Y has an UIImageView (and I have many other views as subViews for X & Y in my project). X.view is on top of…
user2477943
  • 11
  • 1
  • 2
1
vote
1 answer

Getting tableView to scroll as one with parent scrollView after being added with addChildViewController

I'm working through a tutorial on child view controllers in RubyMotion. (What I'm trying to do is create a tabbed interface in the likes of Instagram's profile pages.) I have things working, however my problem is that my container has a scrollView…
tvalent2
  • 4,959
  • 10
  • 45
  • 87
1
vote
2 answers

How to customize back barbutton on EKEventViewcontroller

It tried the following code segment to customize the back bar button with my own button. This had no effect as it looked like default back button. EKEventViewController*eventView = [[EKEventViewController alloc] initWithNibName:nil…