zetachang / DCModalSegue

A custom segue which makes a pushed back modal presenting animation.
MIT License
319 stars 23 forks source link

Replace hard coded status bar height value with lookup #1

Closed nickjshearer closed 11 years ago

nickjshearer commented 11 years ago

On rare occasions the iOS status bar can be 40pts high rather than 20pts (for example, when on a call or recording something with the microphone).

This patch removes the hardcoded 20pt value and replaces it with a [[UIApplication sharedApplication] statusBarFrame].size.height. This prevents the animation 'snapping' into place when an extended status bar is present.

zetachang commented 11 years ago

Merged! Thanks for addressing this. :+1: