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.
Related
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.
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'm trying to accomplish the following. I got 2 uitableviews in a single uitableviewcontroller and at the bottom of the view I have a button. As soon as I click on that button (width of table view) it moves (with animation) to the center of the screen. Now I want the second uitableview to move with it and the first one (was fullscreen before) to shrink. So that at the end I'd have 2 uitableview showing data at the same time.
Clicking again on that button would, you guessed it, move it to the bottom of the screen, hiding the second uitableview so that the first one is in fullscreen again.
Any hints/ideas/code how I could accomplish that?
You cannot use a UITableViewController. You need a UIViewController, throw in 2 UITableViews, make them #propertys of the view controller, and handle their data source and delegate methods as normal.
Then when you press the button, you can change the frames of the two table views just as you change the frame of any UIView.
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.