Top "Uiview-hierarchy" questions

How to list out all the subviews in a uiviewcontroller in iOS?

I want to list out all the subviews in a UIViewController. I tried self.view.subviews, but not all of …

ios uiview subview uiview-hierarchy
iOS: Warning "attempt to present ViewController whose view is not in the window hierarchy"

I am getting following warning when I try to present a ActivityController on navigation controller, Attempt to present <UIActivityViewController: 0…

ios objective-c uiactivityviewcontroller presentviewcontroller uiview-hierarchy
Centering subview's X in autolayout throws "not prepared for the constraint"

I have a custom UIView subclass which is being initialized via a nib. In -awakeFromNib, I'm creating a subview and …

ios objective-c autolayout nslayoutconstraint uiview-hierarchy
Capturing touches on a subview outside the frame of its superview using hitTest:withEvent:

My problem: I have a superview EditView that takes up basically the entire application frame, and a subview MenuView which …

objective-c ios uiview-hierarchy
How to add image with parallax effect above UITableView header and keep header sticky?

Here is an image that explains everything I want to do: My question is, how would I make my view …

ios swift uiviewanimationtransition catransform3d uiview-hierarchy
recursiveDescription method in Swift?

Is there a way to use [self.view recursiveDescription] in Swift? I am trying to use this method but I …

ios uiview swift ios8 uiview-hierarchy
TouchUpInside on UIView with children

I may be missing something here, but... I have a UIView with a few children (a couple of UILabel's and …

iphone uiview-hierarchy touch-up-inside
How to addSubview to the bottom of view hierarchy

I want to add mapView, which I'm adding programatically, to the bottom of hierarchy view, as I already draw some …

ios iphone uiview-hierarchy
Shift to Parent View Controller from child view controller - iOS

I have a main Actions View Controller, and on that there is button "Review". Review Button's functionality is : - (IBAction)…

ios objective-c parent-child parentviewcontroller uiview-hierarchy
How to programmatically set view to the front/back?

I'm working on an application that uses UIViews as backgrounds to text. I've put the views behind the text in …

ios swift xcode uikit uiview-hierarchy