Project is a single view application, by default there is a view controller, I have this as RootViewController, in this ViewController's viewDidLoad function which adds a toolbar view controller and a stage view controller.
toolbar view controller - provides some buttons, such as "select apparel," etc., which itself is a view controller.
stage view controlloer - stage show, used to display clothes.
User "Selecting clothing" button will pop up close view controller, in close view controller select a dress, this dress is "positive", "left side", "right side", "negative" will be displayed on the stage view controller on, but each time only see one side. Users can slide through gestures to switch between different surfaces. The question now is, when I put more than one view controller on RootViewController after gesturing on the stage view controller slides, the program can not receive the message.
Function point I made before pre-research test procedure is to receive the message slide gesture, function points prophecy procedure is relatively simple, it is a single view application project, in which added a stage view controller and on which create different UIView * , corresponding to each face of clothes, and the different dimensions of UIView × associated with the gesture.
This post is made at home, and if that seems too much trouble, then back to the company I will cut a figure to you, hope expert guidance. Thank you!
Reply:
Is not to be in response to the view controller inside with [self becomeFirstResponder]; just so a look at the document, do not know if the New Year holiday is done, go to the company try.
Reply:
Override in your rootviewcontroller touch function, subviewcontroller Do not rewrite the touch function, write a few custom touch function, and then touch the rootviewcontroller the corresponding function call subviewcontroller touch function that accepts a root event, all other things use it to pass over the events, so unified management, distributed processing
Reply:
In rootviewcontroller's - (void) viewDidLoad code is what I wrote:
First stage view controller.view, and then display the toolbar view controller.view, this is the case, stage view controller's view is not the top, so when you click on the stage view controller will not trigger gestures.
To reverse the order of the following two stage view controller's view that for the upper layer, so that the stage view controller will respond to gestures message processing, but at the moment there is a problem, this gesture UISwipeGestureRecognizer message is not being accurately triggered every time, especially I slide the mouse from right to left, almost can not be triggered, these are the pc simulator and test results on a real machine.
Is not UISwipeGestureRecognizer news is that the only response from left to right slip ah?
No comments:
Post a Comment