Why doesn't the undo/redo panel appear when I start a shake gesture in iPhone Simulator?
I've created an NSUndoManager for the Managed开发者_Go百科 Object Context of Core Data, like this:
NSUndoManager *undoManager = [[NSUndoManager alloc] init];
[undoManager setLevelsOfUndo:10];
[managedObjectContext setUndoManager:undoManager];
[undoManager release];
In the app delegate where the didFinishLaunching method is called, I did this:
application.applicationSupportsShakeToEdit = YES;
For some reason, I never get that undo/redo panel when I make a shake gesture in iPhone Simulator (from the menu). Must I enable undo/redo somewhere else, maybe in the Info.plist file?
As lukya pointed out, you already asked this question back in March.
精彩评论