Questions tagged [uiview-hierarchy]
110 questions
6
votes
0 answers
Exception gathering view hierarchy information -[UITextView _firstBaselineOffsetFromTop] only valid when using auto layout
I'm getting this warning in the console output when i try to debug the view hierarchy in Xcode 9.
Exception gathering view hierarchy information -[UITextView _firstBaselineOffsetFromTop] only valid when using auto layout`
I'm not sure what it…

Lukas Würzburger
- 6,543
- 7
- 41
- 75
6
votes
4 answers
How to display overlay over AVCaptureVideoPreviewLayer
I need to display image(frame) overlay over AVCaptureVideoPreviewLayer.
How can i do this?
-(void) viewDidAppear:(BOOL)animated
{
AVCaptureSession *session = [[AVCaptureSession alloc] init];
session.sessionPreset =…

TUNER88
- 923
- 1
- 20
- 36
5
votes
1 answer
What is PGHostedWindow in window hierarcy on iPad and how to prevent their creating?
Ok. Here is the question. I have tabBar controller, in tab at index 0 I have a TableView with cells showing video by AVPlayerViewController. For iPhone, when i print content of UIApplication.shared.windows - it has only 2 window - UIWindow and…

ParaBellum199316
- 51
- 5
4
votes
1 answer
View Debugging: What are the layers of view in any View Controller?
For example, when I add a table view to my view controller what would the view hierarchy be? Is UIWindow always the base View of the hierarchy?
In which layer does the Status Bar lie?
I mostly write code programmatically, therefore, have some…

Anu Mittal
- 181
- 2
- 9
4
votes
0 answers
iOS UIView `convertRect:toView:` doesn't work as expected
I have some old iOS code and now I'm migrating to sdk7. I have to support iOS 5 (so no auto layout). Code creates some parts of UI dynamically (by code).
To handle possibility that navigation view can overlap with navigation bar I did this…

Marek R
- 32,568
- 6
- 55
- 140
3
votes
0 answers
Get a reference to react-native created image views from Objective-C
How do I get a reference to one of the react-native created image views from Objective-C.
I have a basic react native app that I created with the following js code
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
…

hdsenevi
- 953
- 2
- 14
- 27
3
votes
1 answer
Can you configure a container view controller so that contained view controllers respect overlay views?
I have a UIViewController subclass A that is a container of other view controllers. The contained view controllers' view is placed in a container view of A. A's container view is full-screen. A also has an accessory view in the form of a custom bar…

leftspin
- 2,468
- 1
- 25
- 40
3
votes
1 answer
android double layout objects in compound view
When you create a compound view and inflate an xml layout file for it like this:
public class CompundLayout extends LinearLayout{...}
this inflates an xml with root like this:
you end up with a layout hierarchy with a…
user1545072
3
votes
7 answers
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)btnReview:(id)sender
{
ReviewViewController *vc = [[ReviewViewController alloc]initWithNibName:@"ReviewViewController"…

user2334616
- 31
- 1
- 1
- 3
2
votes
1 answer
Xcode View Hierarchy debugger won't rotate views on mouse drag
I'm running Xcode 10.2.1, on MacOS 10.14.3 (Mojave), compiling and running a default single view iOS application in the simulator. When I click on 'Debug View Hierarchy' I can see the views, switch to 3D, zoom, spread and filter with the on-screen…

Robin Macharg
- 1,468
- 14
- 22
2
votes
2 answers
Swift - UIPanGestureRecognizer selecting all layers when only want the top layer selected
I have function which creates a drag line to connect 2 buttons to each other. This works fine but if some buttons overlap each other, it will select both if I drag over where they overlap. I only want to connect the top button.
I think the issue is…

STerrier
- 3,755
- 1
- 16
- 41
2
votes
1 answer
Avoid multiple instance creation of view controller
I have a custom view controller in which I have created a custom navigation bar with multiple buttons.I have used that custom view controller as parent of multiple child controllers(to use that same navigation bar in multiple controllers).I am…

Zahid Shaikh
- 37
- 10
2
votes
1 answer
wkwebview ios 10 stops loading files with localfileurl after recreation of webview
I have a strange behaviour with wkwebview and ios 10.3 and swift 3.
I am using a wkwebview to display local html files (under Application Support).
At first startup everything works and the local website (including js and css) works fine. But if I…

data cosmos
- 313
- 3
- 14
2
votes
1 answer
Root View Controller's view not in the Window Hierarchy
I have coded a login page which in my app delegate (under the method application:didFinishLaunchingWithOptions:) is set to be my root view controller with
[self.window setRootViewController:vc];
Where vc is the instantiation of my HomeVC.
This view…

Matthew Bahr
- 337
- 1
- 15
2
votes
1 answer
Setting the priority of CGRect - Swift
Withing my iOS app, written in Swift, I have a view where i programmatically show a frame that takes up the space of the entire view. I have a button outlet within the story board. When the view loads, the button is hidden behind the…

Katie H
- 2,283
- 5
- 30
- 51