Questions tagged [view-hierarchy]

A view hierarchy defines the relationships of the views to one another.

A view hierarchy defines the relationships of the views to one another.

52 questions
0
votes
1 answer

How do I inspect the "Debug View Hierarchy" while iOS device is plugged?

I know that "Debug View Hierarchy" work on 32-bit Mac App Projects and it doesn't support every type of iOS Simulator. But I can use on some of iOS Simulator. Right now, I'm using AVCaptureVideoPreviewLayer. Obviously it doesn't active on iOS…
Göktuğ Aral
  • 1,409
  • 1
  • 13
  • 28
0
votes
1 answer

Curtain revealing view

I am trying to achieve the following challenging effect: I want to move the white "curtain" down in order to reveal the red box. (Note: in the screenshots below the curtain is white and the background is grey) The problem is in the view hierarchy.…
user-123
  • 874
  • 1
  • 13
  • 34
0
votes
0 answers

Why does my textField disappear?

I do some practice with iPhone4S about UITextField on iOS 7.1.2. Interface: The interface of the first version is simple, which just has a custom UITextField named MyUITextField and a UIButtom object that use to cancel the search operation. Inside…
nora
  • 1
  • 3
0
votes
1 answer

UIScrollView tap gesture not working

I have an application where I am creating and adding PrimaryViewController to a UIScrollView, when the user taps on a button on PrimaryViewController's view, I create and add a SecondViewController to the UIScrollView. The SecondViewController…
tentmaking
  • 2,076
  • 4
  • 30
  • 53
0
votes
2 answers

Detect a touch on a subview in a main controller

I have a main view controller class which contains a UIScrollView and a number of subviews like cards. Each card is an object and it is covered with a UIButton. I want to detect a tap on the UIButton and want to disallow taps on multiple cards at a…
Dimil T Mohan
  • 129
  • 2
  • 10
-1
votes
1 answer

Change Frame of Subview in Superview

I have a ViewController that adds an UIView, SpeciesImageView as a subview in viewDidLoad and set constraints in viewWillLayoutSubviews. SpeciesImageView does not have a nib file. When we create speciesImageView in viewDidLoad, it calls…
maddie
  • 1,854
  • 4
  • 30
  • 66
-1
votes
1 answer

How do I keep my navigation Bar and tableView separate as opposed to having my navBar on top of my tableView

I want it so that my navBar doesn't sit on top of my table view but instead is separate from it, so each tableView cell is displayed in equal proportions. As it is, I can't seem to change it, I have tried adding it manually, programtically and tried…
1 2 3
4