I need this behavior: When the touch screen (currently Gridview) when you can do some operations.
But can not seem to find GridviewController not respond touchBegan, such functions touchMoved (UITableViewController also)
What to do in order to capture the GridView / UITableView touch event? ?
Reply:
There are no visible view cover it?
Reply:
Invisible View coverage? What does this mean?
Such realization will pop up like this when a control bar at the top of the touch function when girdview
Reply:
VIEW is not visible at the top of the stack is set with a view but invisible, you actually operating this view
Reply:
Then perhaps AQGridView and tableview in achieving some differences on the touch event, you can check some information to see, it should not be a problem
Reply:
But I actually want to operate the GridView, for example, to know which format to touch ..
Reply:
You mean not respond to touch events GridView touch it?
Reply:
Ah, that is, those touchBegan in GridViewController in writing: withEvent, touchMoved: withEvent can not be executed.
Tried it, in the same UITableViewController.
Reply:
Put your code stickers look
Reply:
I do not know how to write your GridView is, we have customized a similar thing, is inherited from UIView, on top of some button, and then handle button events
Oh, this approach is a bit rotten
Reply:
@ interface GridViewController: AQGridViewController {
NSArray * imageCells;
} Then write in the implementation file several touch events
# import "GridViewController.h"
@ Implementation GridViewController
- (Void) touchesBegan: (NSSet *) touches withEvent: (UIEvent *) event
{
NSLog (@ "touchBegan");
}
- (Void) touchesMoved: (NSSet *) touches withEvent: (UIEvent *) event
{
NSLog (@ "touchMoved");
}
Reply:
But each cell subclasses of the class is the response touchBegan and touchMoved
Reply:
Because to do is similar to the iPad's photo browser that kind of stuff. If the picture is very much your own UIView it difficult to deal with ..
Reply:
I dare [MyView isTouchEnable: YES] Can write?
Reply:
Upstairs head
Reply:
Such a function? Wrote, but did not prompt such functions ....
Reply:
AQGridViewDelegate
- (Void) gridView: (AQGridView *) gridView didSelectItemAtIndex: (NSUInteger) index;
Reply:
Should control their own delegate, because they delegate integrated performance and behavior control.
Reply:
This is only when you select an execution only when, that is, when the touch and release the hand will respond. But what I need is a touch of the hand when the response.
Reply:
In its own delegate in no touchesBegan, touchesMoved such behavior. Only selected, these acts will be selected ...
I should not write your own, then put them in the AQGridView spread out?
Reply:
It is estimated that only rewrite AQGridView in the touchesBegan, touchesMoved these methods of
No comments:
Post a Comment