Custom launch, close and switch animations for iOS 5.x/6.x