Questions tagged [uiview-hierarchy]
110 questions
1
vote
1 answer
How can I detect which view is handling my tap?
Somewhere towards the bottom of my view hierarchy, I am implementing a touchesBegan method. It fires on all touches except for single finger taps. This leads me to believe that somewhere higher up in the hierarchy, a view is intercepting/handling…

Mark S
- 2,509
- 1
- 14
- 7
1
vote
1 answer
UIView clipToBounds is not stopping a subView receiving touches outside the parent view
I have two UIViews. I'm using one to contain the other so that I can slide one inside the other. I'm encountering an issue where even though a subView is clipped to the bounds of its parent, it is still receiving touch events and blocking access to…

Tomas McGuinness
- 7,651
- 3
- 28
- 40
1
vote
1 answer
Managing view hierarchy when opening a document
I have an IOS App that can open a specific type of documents.
My App receives the document through:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
when it was not yet started or through…

sebastien
- 2,489
- 5
- 26
- 47
0
votes
2 answers
what does 【give the child view controller a chance to respond to the change in view ownership】mean?
I know when you add a child view controller to a parent you need to perform the following steps:
Call the addChildViewController: method of your container view controller.
This method tells UIKit that your container view controller is now managing…

WisleyDee
- 3
- 3
0
votes
1 answer
UIView.animateKeyFrames blocks Uibutton click - view hierarchy issue or nsLayoutConstraint?
I currently have a ToastView class that creates a view that contains a button, label, and image. The goal is to get this ToastView instance to slide up and down on the controller as a subview, like a notification bar. In LayoutOnController(), I add…

kelsey-debug
- 61
- 1
- 8
0
votes
1 answer
How to fix UICollectionView - All cells disappear - Xamarin ios
I am using a UICollectionView in C# Xamarin ios and sometimes all of the cells will disappear from the screen. This happens normally on a scroll and I have to re-invoke the view that my UICollection View is on.
I can't show my exact code as this is…

James McNulty
- 23
- 1
- 6
0
votes
1 answer
Dynamic Creation UIButton AddTarget on UIView executed on UIViewController
Currently this code that executes a Tag Styled List, The issue remains when I want to try to pass the addTarget Action optionClicked to my UIViewController
DrawerView.swift
let menuOptions = ["Info", "Actions", "Users", "Patiens"]
…

Eddwin Paz
- 2,842
- 4
- 28
- 48
0
votes
1 answer
assigning new rootViewController to window doesn't remove current from view Hierarchy when debugging view hierarchy using xcode
old root view controller not removed when assigning new root view controller
i want to reload the app from its beginning ,but i notice that the old root view Controller not removed from view hierarchy
private func reset() {
guard let window =…

Amr AbdelWahab
- 95
- 9
0
votes
2 answers
Sending messages from subview to superview in Cocoa, UIResponder?
I have all these subview which are touch sensitive, I want to send a message from the subview to the superview, to say that a user selected it, so the superview can communicate with the rest of the controller.
I can not communicate between the…

Robert
- 1
0
votes
1 answer
nil error when attempting to set textfield placeholder, segment uiview
xcode v:9.2
I am trying to load user information from the database to set as placeholder text. I have tested this code on a simpler project that does not have segment views, and it works fine. I did some research and I think it might be a…

cycaMq
- 1
0
votes
1 answer
Popover on a Popover issue while tap on notification(Deeplink)
I have already presented a controller on the screen and now click on the home button. Then I need to present another controller on that after tapping on notification using deeplink.
When app comes to foreground, new controller is nor presented and…

Mohit Mangla
- 337
- 1
- 15
0
votes
1 answer
(Swift) Switching between UINavigationController and UITabController nested within Main UINavigationController
Through storyboard, the app entry point is a separate UINavigationController that does some logic on user authentication to first determine whether to push the Home view's embedded UITabBarController or present the Sign-In/Sign-Up view's embedded…

Chris
- 431
- 8
- 33
0
votes
2 answers
Overlap label on imageview inside uistackview ios
I would like to overlap two views (one view on top of each other) inside uistackview . My objective is to display initials of username on top of his image. The image size is constant and the initial label should be in centre of image view
I have a…

ahmed
- 540
- 2
- 18
0
votes
0 answers
Attempt to present <> on <> whose view is not in the window hierarchy
I'm using this code in AppDelegate where on some condition it either opens login screen or splash screen. like below
if (mobile != nil && keepMe == true) { // skip login
let initialViewControlleripad : UIViewController =…

shahtaj khalid
- 476
- 7
- 24
0
votes
1 answer
How to show a growing sub view over a parent view
I have a view as follows
The colored tiles are basically views. When i long press on the tiled views i am creating a copy of the tile in which it was long pressed. Also when it is long pressed there should be a view as per the following image.
The…

Jobins John
- 1,265
- 23
- 45