KelvinJin / AnimatedCollectionViewLayout

A UICollectionViewLayout subclass that adds custom transitions/animations to the UICollectionView without effecting your existing code.
MIT License
4.74k stars 350 forks source link

status bar is not visible #28

Open milligator opened 7 years ago

milligator commented 7 years ago

I am wondering why the status bar not visible in the collection view. would you mind helping me make it visible?

gohanlon commented 7 years ago

Have you tried overriding the method prefersStatusBarHidden from UIViewController to return false?

If you‘re playing with the included example app, you can make this change in ImageCollectionViewController, i.e.:

// …
class ImageCollectionViewController: UICollectionViewController {
    // …
    override var prefersStatusBarHidden: Bool { return false } // was: return true
}
// …