PowenKo,iOS Tutorial 151, Input, Long press gesture


    // Long press gesture ("touch and hold")
    UILongPressGestureRecognizer *dragGesture = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(handleDrag:)];
    [dragGesture setDelegate:self];
    [self addGestureRecognizer:dragGesture];
    [dragGesture release];

Leave a Reply