문제

I have an app that uses the shake gesture for something else besides undo. I want to use NSUndoManager and all the examples and how-tos say I have to put the following line in my applicationDidFinishLaunching method.

application.applicationSupportsShakeToEdit = YES;

Is it possible to use NSUndoManager without supporting the shake to undo gesture?

도움이 되었습니까?

해결책

Sure. Create an Undo button, then:

- (IBAction)undoButtonPressed {
    [myUndoManager undo];
}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top