fabregas88 fabregas88 - 1 year ago 118
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 Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download