Questions tagged [uiview-hierarchy]
110 questions
2
votes
1 answer
Determine whether UIView is covered by other views?
I'm building a simple card game where cards are flicked onto a central pile, and I'd like to begin removing the bottom cards when the number gets too large. However, I apply some random rotation and positioning to each card, meaning the corners of…

Luke
- 9,512
- 15
- 82
- 146
2
votes
3 answers
Detect if a UIView is behind another UIView in parent
I have a parent UIView with several subviews.
The subviews are siblings - the child-views are not sub views of each other. (Each at the same heirarchical level in their superview)
For instance:
UIView *containerView = [[UIView alloc]…

Avba
- 14,822
- 20
- 92
- 192
2
votes
2 answers
viewDidAppear: called when using presentViewController:animated:completion:
I have a view controller which queries a web service as to whether an interstitial ad should be shown. If so, another view controller is instantiated and presented using presentViewController:animated:completion:. According to this answer and the…

rob5408
- 2,972
- 2
- 40
- 53
2
votes
1 answer
How do I identify a blended layer in iOS?
I am triggering an iOS animation to move some elements around on my screen, and when I do so, an area at the bottom of the screen (away from where I think I'm doing the operation) changes shade slightly. When I turn on 'show blended layers' in the…

c roald
- 1,984
- 1
- 20
- 30
2
votes
1 answer
UIButton is nil in MFMessageComposeController on iOS 6.0
I am trying to print the view hierarchy of the application's visible and hidden windows. Here is a part of my code inside a subclass of MFMessageComposeViewController:
NSArray *windows = [[UIApplication sharedApplication] windows];
for(UIWindow…

oistanchev
- 97
- 1
- 2
2
votes
0 answers
Subview common to multiple view controllers is unresponsive
I am using a UIView to show busy/processing clue to User and components in loading view are not responding to user touches. Let me elaborate my problem.
I have around 3 UIViewControllers and based on situation one View from VieControllers would be…

Cool Coder
- 309
- 2
- 11
2
votes
4 answers
How to Insert View in Superview's View? (iOS)
I have the line of code below... How would I modify it to insert the subview in the superview's view named 'foo'?
[[self superview] addSubview:copy3];

William LeGate
- 540
- 7
- 18
1
vote
1 answer
How to find where UIView has been created in code - swift - Programmatically
If I see a UIView in Debug View Hierarchy and I don't know where it comes from,
Is there a way to see where it has been programmatically created in code?
This question describes and explains the reverse case (you have the code of the view and you…

StackGU
- 868
- 9
- 22
1
vote
1 answer
UISearchController extra unexpected UIView in hierarchy
I have problem with UISearchController. It is adding one extra View as direct child of its View. It has isAccessibilityElement = true and description "Double-tap to dismiss", this blocks all Appium automatic testing. I can't figure out why, where…

Prettygeek
- 2,461
- 3
- 22
- 44
1
vote
2 answers
_UIRemoteView - reveal view hierarchy in Xcode
I'd like to see, how the Apple's UI frameworks are composed, in particular, the ContactsUI. However, when I try to Debug View Hierarchy in Xcode, I see only the blank _UIRemoteView.
Is there any way to peek inside the view hierarchy of the contact…

Richard Topchii
- 7,075
- 8
- 48
- 115
1
vote
1 answer
iOS: How to cover status bar with container view
I have following view hierarchy in my main view controller:
Main view -> Container view -> Page view controller in container view -> Item view controller for every page
I need to make item view controller to place his view above status bar of main…

art-of-dreams
- 241
- 3
- 12
1
vote
0 answers
Container View Controller disappears when Child View Controller presents a Modal View Controller iOS Swift
I'm new to the iOS swift scene and i was hoping you would be able to help me find a solution or send me on an alternative route to achieving this.
Here is the diagram to my Application Interface Structure
So, i have the ContainerVC which has a…

pluto
- 11
- 1
1
vote
0 answers
UITabBar change view hierarchy after rotating process. (or changes its position in view hierarchy)
I have a view with several subviews (with only one peculiarity I added tabBar as a subview to a view of VC)
super.viewDidLoad()
view.addSubview((tabBarController?.tabBar)!)
view.addSubview(collectionView)
view.addSubview(pageControl)
…

Ninja
- 309
- 7
- 26
1
vote
1 answer
A TableView that "fits" (ala "sizeToFit") its dynamic cell's content size. Then nested in a parent UIView that is also "sized to fit"
I'm not sure if I'm approaching this in the most optimal way.
(1) First, I want a tableView with an arbitrary number of cells, whose dynamic cell height varies (based on content from web server, cannot be calculated ahead of time). But I want the…

Jay
- 594
- 10
- 23
1
vote
1 answer
View stuck behind MapView
I have tried everything to make my view appear over the map view (see code below), but it still won't show up. I don't know what to do. This is the mapView at 0.5 alpha
segmentedControl = DPSegmentedControl.init(
FrameWithoutIcon:…
user6436485