I have two views. View 1 is the bottom view and View 2 overlaps view 1.
View 2 is used for some representational purpose and view 1 performs user touch handling. Since View 2 is covering View1, we are not receiving touch events is View1.
How can we bypass touch events from view 2 to view 1 ??
Add a pointerEvents:'none' property to the top View and you'll be able to click through it to the bottom View.
Related
I have a window that contains 2 separate views. View A and view B.
View B is a transparent view so what you are seeing is actually View A on the screen. Is there any ways to make clicks made on the screen (which goto View B since its on top) to actually act on View A?
View B is NOT a child view of view A. They are both child views of the main Window.
* Caveat here is that I still would need to be able to register any dragging events on View B. I simply want the 'click' events to pass through
View A is going to be the main screen of what the user is interacting with and View B is a draggable off-screen menu resting on a transparent background that is partially on the screen so the user can grab it and drag it into the screen
Thanks!
There is a property you're looking for that can handle this, it is
touchEnabled: false
If you put that on your transparant view it should not trigger any click event, but the view below it should.
I have a problem with my tableview. My first problem is that I have a tableview with a view on top. In this view there are 3 buttons. I am building this using story board.
My problem with this is that what I scroll down, my view disappears. How can I set this that this view always stays on top? At the moment you can see this view as the 'first cell'.
Kind regards
If you look at the view hierarchy on the left hand side you'll see that your header view is a subview of the table, so it scrolls with it.
From that hierarchy view drag it out of the table view so that it's at the same level.
Also, resize your table so that it starts underneath the view with the header bar.
Tim
What if you select your view in Interface Builder, then go to Editor->Arrange->Send to front?
I'm working with UISplitViewController on iPad and want to override it's behavior. When user taps on bar button, there are slides menu from the left side of screen. But it overlaps detail view controller. Can I make it so the detail view controller shrinks animated when the menu appears and expands when the menu disappears?
I don't think it's natively possible, so I think of 2 ways of doing this
1 - try and error: study the split delegate calls to see when you should shrink the content in your detail and tune it up until it looks smooth
2 - create your own "split" controller and do all the resizing/presenting by yourself
I have seen some questions asking about switching view controllers using a segmented control, but none of the suggestions seem to fit my needs.
I have a tab bar application with 3 tabs. The first tab is a navigation controller with a tableview as its root. When one of the rows is selected, I push a view controller X onto the navigation stack.
In controller X, I wish to use the segmented control to be placed in the bottom toolbar (as opposed to the titleview in many samples). Controller A would be shown inside controller X if the first segment is selected, controller B would be shown if the second segment is selected, whilst keeping the toolbar to be the same for A and B. What's the best approach to this problem?
Thanks,
Joe
I'm building an application for the iphone that uses both modal views and navigation-controllers. In my case, the initial screen is a table view within a navigation controller, and if the user clicks on the "+" button, they get a new screen that appears in a modal view sliding up from the bottom of the screen that will allow them to add a new record. Within this modal view I want to have a button that will allow them to select from a list of options.
To provide a quick example, take a look at this screenshot from the Apple documentation: https://developer.apple.com/library/ios/DOCUMENTATION/UserExperience/Conceptual/TableView_iPhone/Art/ui_navbarpurposes.jpg. If you look at the "Repeat" option in the second view, that's what I want to emulate -- the user will click on the option and a new view (not a action sheet) will load allowing them to select from a list.
Ideally, I would want this new option screen to slide in from the right like a new view was added to the navigation controller stack. However, since add record screen is a modal view, I can't do that, can I? Or would my modal view need to load my add records view embedded within a new navigation controller?
Hopefully I'm explaining this clearly enough. Sorry for any confusion!
Your last thought is the way to go: you need to add a navigation controller to your modal view, and then when they tap the table view row, you just push your next view onto the navigation stack.