kilik52
kilik52

Reputation: 664

[iOS]How to cover status bar like Facebook Paper?

Facebook Paper uses a card-style view controller. The background has a status bar, which can be covered by the front card.

How to achieve that?

enter image description here

Upvotes: 1

Views: 279

Answers (1)

eonil
eonil

Reputation: 85975

It is basically a new UIWindow that has higher windowLevel. You make a new window and set windowLevel to something like UIWindowLevelStatusBar + 1. Then, the content of the window will float on top of the status bar.

But beware! Apple AppStore does not like "abusing status bar", and will reject whatever if they feel you're abusing status bar stuffs. This is just another story from how you can implement.

If you're looking for a tutorial, here's nice one.

http://initwithfunk.com/blog/2014/02/07/how-to-build-the-facebook-paper-status-bar-hover/

Upvotes: 3

Related Questions