suxinde2009 / isgl3d

Automatically exported from code.google.com/p/isgl3d
Other
0 stars 0 forks source link

Isgl3dGestureManager needs additional check on iOS 3.1 #21

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
just changed:

- (id)initWithIsgl3dDirector:(Isgl3dDirector *)aDirector
{
    if (self = [super initWithTarget:nil action:nil])
    {
        ...

to:

- (id)initWithIsgl3dDirector:(Isgl3dDirector *)aDirector
{
    Isgl3dGestureManager *gestureRecognizer = [super initWithTarget:nil action:nil];

    if (![gestureRecognizer respondsToSelector:@selector(locationInView:)]) {
        [gestureRecognizer release];
        gestureRecognizer = nil;
    }

    if (gestureRecognizer)
    {
        self = gestureRecognizer;
        ...

According to the UIGestureRecognizer class reference, under "Usage Special 
Considerations"

Original issue reported on code.google.com by rhodyl...@gmail.com on 6 Feb 2012 at 8:45