Questions tagged [uiview-hierarchy]

110 questions
0
votes
0 answers

Custom View AddSubview programmatically, not shown UIElements…

I do this to add a Subview from Storyboard, which is a subview from a ViewController with its own Class. (TomStatusbarController) ...it is set as CustomClass in Storyboard. I do also Constraints with Layoutformats. This works fine, but the Statusbar…
peakme
  • 19
  • 4
0
votes
1 answer

Material swift : UIView with Searchbar and TabBar moves out of view swift 3

I have SearchBar and TabBar on a view which i created using CosmicMind Swift Material framework for swift (https://github.com/CosmicMind/Material). Below is the code i have for setting up the view: window = UIWindow(frame: Screen.bounds) let…
tigg
  • 107
  • 8
0
votes
1 answer

Container GUI for 3 different mfc applications

I currently have 3 very similar, but slightly different mfc applications, which would normally be opened at the same time as part of their workflow and usage in a Windows environment. I would like to keep them as 3 separate applications, but somehow…
Claudiu
  • 155
  • 1
  • 3
  • 14
0
votes
1 answer

iOS Is it possible/expected for a view controller to outlive its view?

In the app I'm working on, we sometimes get random crashes in the completion part of a network request. The chain of events is as follows: Add a view controller as a child VC. The parent is registered as the child's delegate. The child calls…
funct7
  • 3,407
  • 2
  • 27
  • 33
0
votes
2 answers

How to get which view in the hierarchy was touched?

I have an UIview V of type MyUView, which contains a stackView named S1. The S stack contains a stackview named NM, which contains a UITextField named T and another stackview named M, whose contains an UILabel named L. For the sake of simplicity…
0
votes
0 answers

hide a button on checking a condition while the app enters foreground

I have to hide a button by checking two particular viewcontroller's view is a descendant of present view.This is being done when the app comes to foreground. Code: [[NSNotificationCenter defaultCenter] addObserver:self…
Vork
  • 746
  • 2
  • 12
  • 34
0
votes
1 answer

How to show view controller from custom UIButton class?

I have following view hierarchy: navigation controller, inside it I pushed another view controller which contains UITableView with custom UIButtons in the cells. I have another view controller (MyCustomViewController2), which I want to show above…
user3742622
  • 1,037
  • 3
  • 22
  • 40
0
votes
2 answers

pick up custom views in UIView hierarchy

There is a situation that should select all custom view(not system view type such as UILabel or UIButton etc.) like XXButton or XXView. How can I iterate a UIView's subviews to figure out all the custom views? In other words, how to distinguish…
musixlemon
  • 61
  • 2
  • 5
0
votes
1 answer

Placing a view directly on top of another of the same size

Ok, first what i'm trying to achieve: A background video with interactive text over the top. This text is being generated in the code i've written and is being presented in a UIView. The video is being played in an AVPlayerController, embedded in a…
Joseff
  • 1
  • 1
0
votes
1 answer

"whose view is not in view hierarchy" on Segue

I try to perform a segue programatically from one view to another, way after it's been loaded (server sends an order to proceed) but it won't happen because "whose view is not in view hierarchy". Any ideas on how to solve it? P.S. I don't perform…
EBDOKUM
  • 1,696
  • 3
  • 15
  • 33
0
votes
1 answer

UIView's frame gets overwritten randomly

I'm having a problem with the way UIViews are set up. Situation I have a view that I'll add some detail views to. Those detail views are in sequential order, much like the rows of a UITableView are. This is actually a pretty good comparison. The…
flohei
  • 5,248
  • 10
  • 36
  • 61
0
votes
1 answer

ios autolayout overlay view on edge of another view (layering), programmatically

Here I have designs for a custom arrow which will function as a share button. It is supposed to be pinned to the lower edge, with its center point being anchored to the bottom view as pictured. How would I do this using VFL? This is what I…
CQM
  • 42,592
  • 75
  • 224
  • 366
0
votes
1 answer

Crash while dismissing uiimagepicker

This is an issue reported at crashlytics. I am getting this(I assume) when I load image picker and dismiss. I only got this once. But it got something to do with image picker or navigation controller. Does any one know the cause? Update Image…
0
votes
1 answer

Android Modify Parent View after Child is Drawn

I am having issues with modifying a parent view after a child is drawn. I need data from the child after the onDraw method is called. I need to use this information to modify the parent view. So after the child is drawn, how would I go about…
New Guy
  • 566
  • 1
  • 8
  • 28
0
votes
1 answer

My header view in UITableView is not added to the UIView Hierarchy

Using UITableView and NSFetchedResultsController I refresh and display the content of my table. At some point I hava a screen without header view. It should be instead of the space between cells. When I debug View hierarchy I have the following…
Bartłomiej Semańczyk
  • 59,234
  • 49
  • 233
  • 358