ios - Notification bar in iPhone apps -


i create notice bar, active-phone-call notice bar, whenever user losses connection server.

is there easy way this? can't find in api, there must supported way - or should program manually?

example image

example: difference being want active while in app , want define text myself.

there no direct api available doing this, can change status bar color this

self.window.backgroundcolor = [uicolor colorwithred:0.78f green:0.13f blue:0.11f alpha:1]; [[uiapplication sharedapplication] setstatusbarstyle:uistatusbarstyleblacktranslucent]; 

and add view below custom text.

or, if want put information in status bar custom color, take @ kgstatusbar or mtstatusbaroverlay.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -