Write some text in (or) UIStatusBar

I know this is a strange question ^^,

I would like to know if there is a way to write some text in (or on) UIStatusBar. In particular, I want to write text in the status bar when the user clicks the UIButton button.

Thank!

+3
source share
4 answers

I'm not sure if you can paint directly in the status bar, but you can paint on top of it in a user view. You can get the status bar frame using:

CGRect statusBarFrame = [[UIApplication sharedApplication] statusBarFrame];

And you can get the main application window (presumably viewing the status bar) using:

UIWindow *mainWindow = [[UIApplication sharedApplication] keyWindow];

. , , "" , Reeder.

+5

, , . .

+2
0

Source: https://habr.com/ru/post/1777987/


All Articles