ios7 设置status bar风格

How to change status bar style during launch on iOS 7


up vote4down votefavorite

 

When I launch my app, it shows the launch image and a black status bar. How can I change it so the status bar is light during launch? I have set the status bar appearance to light in my AppDelegate didFinishLoading method, and it works for the rest of the app.

ios objective-c ios7


share|edit|flag

asked Sep 20 at 19:22

user1008096
232

  add comment

1 Answer

activeoldestvotes


up vote5down vote

To your Info.plist file add this key-value pair:

UIStatusBarStyle:UIStatusBarStyleLightContent

The default (black) value is UIStatusBarStyleDefault.

You can also append ~iphone or ~ipad to the key.


share|edit|flag

answered Sep 20 at 19:28

iMartin
2,015411

  add comment

欢迎加群互相学习,共同进步。QQ群:iOS: 58099570 | Android: 330987132 | Go:217696290 | Python:336880185 | 做人要厚道,转载请注明出处!http://www.cnblogs.com/sunshine-anycall/p/3341024.html

时间: 2024-10-13 06:45:18

ios7 设置status bar风格的相关文章

Status bar and navigation bar appear over my view's bounds in iOS 7

186down votefavorite 122 I recently downloaded Xcode 5 DP to test my apps in iOS 7. The first thing I noticed and confirmed is that my view's bounds is not always resized to account for the status bar and navigation bar. In viewDidLayoutSubviews, I p

Android开发指南(38) —— Status Bar Notifications

前言 本章内容为Android开发者指南的 Framework Topics/User Interface/Notifications/Status Bar Notifications章节,译为"状态栏通知",版本为Android 4.0 r1,翻译来自:"呆呆大虾",欢迎访问他的微博:"http://weibo.com/popapa",再次感谢"呆呆大虾" !期待你一起参与翻译Android的相关资料,联系我over140@

Android ApiDemos示例解析(29):App->Notification->Status Bar

这个例子的Icons Only 和 Icons and marquee 没有什么特别好说明的. 而Use Remote views in balloon 介绍了可 以自定义在Extended Status bar显示Notification的Layout,Extended Status Bar缺省显示Notification 是一个图标后接文 字,对应大多数情况是够用了.但如果有需要也可以使用自定义的Layout在Extented Status bar显示Notification,方法是通 过R

深入理解TextView实现Rich Text--在同一个TextView设置不同字体风格_Android

背景介绍在开发应用过程中经常会遇到显示一些不同的字体风格的信息犹如默认的LockScreen上面的时间和充电信息.对于类似的情况,可能第一反应就是用不同的多个TextView来实现,对于每个TextView设置不同的字体风格以满足需求. 这里推荐的做法是使用android.text.*;和android.text.style.*;下面的组件来实现RichText:也即在同一个TextView中设置不同的字体风格.对于某些应用,比如文本编辑,记事本,彩信,短信等地方,还必须使用这些组件才能达到想到

android:在 status bar 上添加 notification

问题描述 android:在 status bar 上添加 notification 我使用 NotificationCompat.Builder 创建了一个 notification,但是不知道如何在 status bar 中显示出来? 我使用代码: NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); notificatio

notificaion-如何在status bar中显示通知?

问题描述 如何在status bar中显示通知? 我在 activity 中创建了 notification Notification n = new Notification.Builder(getApplicationContext()) .setContentTitle("New mail from " + sender) .setContentText(subject) .setSmallIcon(R.drawable.notification) .build(); 现在在st

android图库竖屏不显示status bar的解决方法_Android

图库在JB和JB2的版本上显示的行为是:横屏全屏显示,竖屏会显示status bar.如何使竖屏也不显示status bar. 修改alps/packages/apps/Gallery2/src/com/android/gallery3d/app/AbstractGalleryActivity.java中toggleStatusBarByOrientation() 方法: 复制代码 代码如下: private void toggleStatusBarByOrientation() { if (m

CExtStatusControlBar - Managing status bar's panes is getting easier

Is your email address OK? You are signed up for our newsletters but your email address is either unconfirmed, or has not been reconfirmed in a long time. Please click here to have a confirmation email sent so we can confirm your email address and sta

android图库竖屏不显示status bar的解决方法

图库在JB和JB2的版本上显示的行为是:横屏全屏显示,竖屏会显示status bar.如何使竖屏也不显示status bar. 修改alps/packages/apps/Gallery2/src/com/android/gallery3d/app/AbstractGalleryActivity.java中toggleStatusBarByOrientation() 方法: 复制代码 代码如下: private void toggleStatusBarByOrientation() { if (m