hi guys. I have an issue with UIButton.
i suppose this code:
Code:
self.biteButton = [UIButton buttonWithType:UIButtonTypeRoundedRect];
biteButton.frame = CGRectMake(150, -100, 55, 55);
double alpha = -M_PI/2;
CGAffineTransform affTransf;
affTransf.a = cos(alpha);
affTransf.b = -sin(alpha);
affTransf.c = sin(alpha);
affTransf.d = cos(alpha);
affTransf.tx = 10;
affTransf.ty = 315;
[biteButton setTransform:affTransf];
[biteButton addTarget:self action:@selector(biteButtonActionUp) forControlEvents: UIControlEventTouchDragOutside | UIControlEventTouchUpInside];
biteButton.backgroundColor = [UIColor clearColor];
[[[[CCDirector sharedDirector] openGLView] window] addSubview:biteButton];
means that biteButtonActionUp method should be called when user taps on the button and then drags his finger outside of the biteButton. But this method is called when finger is much farther then out biteButton(biteButton belongs to UIButton class).
How to do so that biteButtonActionUp method would be risen just only when the user's finger has been dragged out of the biteButton.
sorry for my english but i hope you are able to understand me