手势

UITapGestureRecognizer* resignGes = [[UITapGestureRecognizer alloc] init];

        resignGes.numberOfTapsRequired = 1;

        [resignGes addTarget:self action:@selector(handleEnter:)];

        [self addGestureRecognizer:resignGes];

        [resignGes release];

你可能感兴趣的:(手势)