Tuesday, December 17, 2013

How to disable the zoom feature in the app

RT, is three fingers while knocking down two can zoom zoom effect, without changing system settings where the switch premise of the game is only in the app will not let this effect appears to exit the game is to restore zoom effects, ask how to do it ?
Reply:

Reply:
cited a House Re yetaodiao of:


Ah? May I ask how to do it in uiview in
Reply:
- (Void) touchesBegan: (NSSet *) touches withEvent: (UIEvent *) event {

}
- (Void) touchesCancelled: (NSSet *) touches withEvent: (UIEvent *) event {
}
- (Void) touchesEnded: (NSSet *) touches withEvent: (UIEvent *) event {
}
- (Void) touchesMoved: (NSSet *) touches withEvent: (UIEvent *) event {

}
Using these three methods, intercepted "three fingers simultaneously knocked two down" operation. Then deal with their own under

NSUInteger numTaps = [[touches anyObject] tapCount] ;/ / point
fewNSString * tapsMessage = [[NSString alloc]
initWithFormat: @ "% d taps detected", numTaps];
tapsLabel.text = tapsMessage;
[TapsMessage release];

NSUInteger numTouches = [touches count] ;/ / number of touch points
NSString * touchMsg = [[NSString alloc] initWithFormat:
@ "% D touches detected", numTouches];
touchesLabel.text = touchMsg;
[TouchMsg release];

Reply:
reference to the third floor lone_boy reply:
- (void) touchesBegan: (NSSet *) touches withEvent: (UIEvent *) event {

}
- (Void) touchesCancelled: (NSSet *) touches withEvent: (UIEvent *) event {
}
- (Void) touchesEnded: (NSSet *) touches withE ......


Beginners do not understand what the meaning of
Reply:

- (Void) touchesBegan: (NSSet *) touches withEvent: (UIEvent *) event {

}
- (Void) touchesCancelled: (NSSet *) touches withEvent: (UIEvent *) event {
}
- (Void) touchesEnded: (NSSet *) touches withE ......


View your finger on the monitor, such as a few fingers, a few points, can be obtained.
Reply:

No, right?
Or will achieve UIScrollViewDelegate on UIScrollView zoom bar.
Reply:
reference to the third floor lone_boy reply:
- (void) touchesBegan: (NSSet *) touches withEvent: (UIEvent *) event {

}
- (Void) touchesCancelled: (NSSet *) touches withEvent: (UIEvent *) event {
}
- (Void) touchesEnded: (NSSet *) touches withE ......


NSUInteger numTaps = [[touches anyObject] tapCount] ;/ / point
fewNSUInteger numTouches = [touches count] ;/ / number of touch points

Where these two write it, I write these two touchesBegan to determine if there then, if it is scaled on the return, seemingly to no avail it

Reply:
Looks like NSUInteger numTouches = [touches count] ;/ / always get a few touch points what circumstances it
Reply:
Not do it, looked at the set of API developer.app.com which said only capture a single finger touch screen three fingers will not do so to capture the shot a few times in a row, but do not catch a few fingers shot ...... < br />
Seek expert advice

No comments:

Post a Comment