fabregas88 fabregas88 - 1 month ago 24
iOS Question

Toggle slow animation while debugging with iOS Device

I'm using xCode 4.3.1 and I need to use the option that the iOS Simulator has => Debug -> Toggle Slow Animation but while debugging with the iOS Device.

Is it possible?

Answer

It's not possible in exactly the same way as with the Simulator, but there is a good way to accomplish the same effect using lldb.

Use the debugger to pause code execution, and then enter the command:

p [(CALayer *)[[[[UIApplication sharedApplication] windows] objectAtIndex:0] layer] setSpeed:.1f]

into the debugger.

Thanks to this link for the solution.

Comments