statusbar

How to apply top offset for status bar in iOS7 for UITabBarController children only

早过忘川 提交于 2019-12-30 18:48:06
问题 My app is a UITabBarController based app with 3 children vc. The status bar is overlapping with my viewcontrollers. I have tried everything I have found in SO: I tried adding this to my AppDelegate: //Offset downwards to make room for status bar self.window.bounds = CGRectMake(0, -20, self.window.frame.size.width, self.window.frame.size.height); It worked because it moved the entire UITabBarController down by 20. But this resulted in the tabs being cut off at the bottom by -20. So Im thinking

how to programmatically remove gps blinking icon from status bar in android (or make it never blink)?

对着背影说爱祢 提交于 2019-12-30 11:15:31
问题 In my android application which uses GPS, I have UI elemnts that should blink permanently. I was told after a couple of pilot runs that the blinking GPS icon, i.e. when GPS is actually trying to get a fix, steals completely unnecessary bit of user's attention from the main UI. Is there a way to remove the GPS antenna icon from the status bar programmatically from within the application? Or, alternatively, make it never blink? Thanks! 回答1: You could hide the Status Bar altogether: http://blog

Honeycomb themes *.NoActionBar or *.NoTitleBar - where is Menu button?

匆匆过客 提交于 2019-12-30 08:16:07
问题 My manifest setup: targetSdkVersion=11 I have Activity with theme set to android:style/Theme.Holo.NoActionBar or android:style/Theme.NoTitleBar Desired result: app that doesn't show top bar (action bar or title bar), and has menu. I want almost full screen (video player or image viewer) possibly with dimmed status bar. Problem is that in such combination, there's no way to push menu button, because there's no Menu button shown. If targetSdkVersion is <11, then there's legacy Menu button at

Display UIView Above Apple Status Bar in iOS 8

可紊 提交于 2019-12-29 08:20:10
问题 I know there have been some questions posted about this, but none have helped me with my specific issue. I would like to display a custom modal above the entire screen, but I would like to keep the Apple status bar visible. For the modal, I am using one UIView for the dimming effect and another for the actual view that the user would interact with. The entire modal is then added as a subview to the current view and brought to the front. Essentially, I am trying to replicate the behavior of

How come some of my UIViews are shifted after navigation?

对着背影说爱祢 提交于 2019-12-29 04:02:21
问题 In some of my application designs or for just some UIViews, following a navigationController's pushViewController, my new view will be shifted off the window by the height of the status bar. As a result, I will put this code stub in the viewDidLoad method. CGRect frameAt = [self.view frame]; CGRect statusBarFrame = [[UIApplication sharedApplication] statusBarFrame]; frameAt.origin.y += statusBarFrame.size.height; [self.view setFrame: frameAt]; It does not make sense to me that this is the

Scroll to top of UITableView by tapping status bar

前提是你 提交于 2019-12-29 02:33:13
问题 I know there's tons of code out there to scroll a tableview to the top, but I want to do this when the top status bar is tapped, just like in Apple's native apps. Is this possible? 回答1: You get this for free, but you should check that the scrollsToTop attribute of your UITableView is YES. When this does NOT work is when you have a UIScrollView (or descendant class like UITextView) object embedded inside another UIScrollView class (like UITableView ). In this case, set scrollsToTop on the

Status Bar showing black text, only on iPhone 6 iOS 8 simulator

别说谁变了你拦得住时间么 提交于 2019-12-28 08:09:33
问题 I'm trying to convert my iOS 7 app to iOS 8 in Xcode 6 GM, and when i run it on the iPhone 5s or lower simulators with iOS 8 everything is fine, but on the iPhone 6 and 6 Plus simulators, the Status Bar has black text instead of white like it is everywhere anytime else. I've set the Info.plist UIStatusBarStyle to "Transparent Black Style (alpha of 0.5)" thru Xcode, and that seems to have the desired effect everywhere else. Any ideas what is going on? (I haven't touched any of the storyboards

How to show an icon in the status bar when application is running, including in the background?

你说的曾经没有我的故事 提交于 2019-12-28 03:30:07
问题 I want to put an icon in the status bar when ever my application is running, including when it is running in the background. How can I do this? 回答1: You should be able to do this with Notification and the NotificationManager. However getting a guaranteed way to know when your application is not running is the hard part. You can get the basic functionality of what you are desiring by doing something like: Notification notification = new Notification(R.drawable.your_app_icon, R.string.name_of

Changing the status bar text color in splash screen iOS 7

淺唱寂寞╮ 提交于 2019-12-28 03:24:07
问题 I know that are already some stackoverflow questions that say how to change the status bar for all view controllers. I am currently changing the color of status bar this way: if(IS_IOS7) [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]; In the application:DidFinishLaunching Additionally, I have changed the value of UIViewControllerBasedStatusBarAppearance in the plist to NO . However, in the splashscreen it stills shows the status bar text with the black

How to hide status bar in UIImagepickercontroller?

对着背影说爱祢 提交于 2019-12-28 01:56:05
问题 I am new to iOS development. I am trying to hide status bar in UIImagePickerController . Whenever I click on "Take photo", status bar appears. It doesn't hide. I want status bar to be hidden only in UIImagePickerController . Here is my code, - (IBAction)takePhoto:(UIButton *)sender { UIImagePickerController *picker = [[UIImagePickerController alloc] init]; picker.delegate = self; picker.allowsEditing = YES; picker.sourceType = UIImagePickerControllerSourceTypeCamera; [self