一、屏幕高度和宽度获取方法int screenWidth,screenHeight; WindowManager windowManager = getWindowManager(); Display display = windowManager.getDefaultDisplay(); s...
分类:
移动开发 时间:
2014-09-15 14:09:38
阅读次数:
196
一、状态栏(statusBar)在iOS7中view默认是全屏模式,状态栏的高度也加在了view的高度上,例如iOS7之前iphone5中self.view.frame.size.height = 548,在iOS7中就是568了,在iOS7中navigationbar是半透明的,statusbar...
分类:
移动开发 时间:
2014-09-15 00:52:27
阅读次数:
460
转自:http://beyondvincent.com/blog/2013/11/03/120-customize-navigation-status-bar-ios-7/注:本文译自Customizing Navigation Bar and Status Bar in iOS 7近期,跟大多数开...
分类:
移动开发 时间:
2014-09-14 11:15:36
阅读次数:
353
MPMoviePlayerViewController *moviePlayerViewController = [[MPMoviePlayerViewController alloc] init]; moviePlayerViewController.view.frame = CGRe...
分类:
移动开发 时间:
2014-09-13 18:37:55
阅读次数:
266
在ios7中,如果setTranslucent=yes 默认的 则状态栏及导航栏底部为透明的,界面上的组件应该从屏幕顶部开始显示,因为是半透明的,可以看到,所以为了不和状态栏及导航栏重叠,第一个组件的y应该从44+20的位置算起如果设置成no,则状态栏及导航样不为透明的,界面上的组件就是紧挨着导航....
分类:
其他好文 时间:
2014-09-13 18:32:05
阅读次数:
132
Notification是显示在手机状态栏的通知,状态栏位于屏幕最上方,一般用于显示网络状态,电池状态,事件等,程序使用NotificationManager服务来发送Notification通知,步骤如下:调用getSystemService(NOTIFICATION_SERVICE)获取系统的N...
分类:
移动开发 时间:
2014-09-12 22:01:24
阅读次数:
193
iOS7中我们通过ViewController重载方法返回枚举值的方法来控制状态栏的隐藏和样式。setStatusBarHidden在iOS7中不起作用了。
需要在Info.plist配置文件中,增加键:UIViewControllerBasedStatusBarAppearance,并设置为YES;
然后,在UIViewController子类中实现以下两个方法:
- (B...
分类:
移动开发 时间:
2014-09-10 17:46:50
阅读次数:
192
如果只是单纯的隐藏状态栏,那么是在默认情况下,只需要重新实现两个新方法- (UIStatusBarStyle)preferredStatusBarStyle{ return UIStatusBarStyleLightContent; //UIStatusBarStyleDefault =...
分类:
移动开发 时间:
2014-09-10 17:17:20
阅读次数:
258
1窗体外观的改动(1)改动在CMainFrame::preCreateWindow(CREATESTRUCT& cs)改动标题:cs.style&=FWS_ADDTOTITLE;cs.lpszNamw="new title";(2)窗体创建之后改动外观在CMainframe::Create()中调用...
1. 修改OppReceiver.java
if (action.equals(BluetoothAdapter.ACTION_STATE_CHANGED))
Modify to
if (action.equals(Intent.ACTION_BOOT_COMPLETED)){
if (FeatureOption.MTK_BT_PROFIL...
分类:
移动开发 时间:
2014-09-10 10:54:40
阅读次数:
312