iOS 8 hide the colored top bar alert when apps are actively using your location in the background - objective-c

I want to hide the colored top bar alert when apps are actively using your location in the background, how can i do it?

use requestAlwaysAuthorization instead of requestWhenInUseAuthorization.

Related

How to maintain background screen at same position when pop up window gets added?

I am developing a windows phone app, and I have added a popup control in it, its working fine
Problem: When popup window comes on screen the background screen changes its position and go to bottom.
How to fix this issue? How to maintain position of background screen while using a popup?

Native mail composer has normal status bar in iPhone but mostly blank in iPad

I'm using a UIDocumentInteractionController in my universal app. On an iPhone, when a user is presented with the interaction controller and they select the "Mail" option, a native Mail composer window is presented that still shows the full status bar (carrier, the time and the battery life indicator). When the same code executes on the iPad version, the native Mail composer window slides up and then right when it reaches the top, the status bar goes completely black except for the green bar that is normally inside the battery.
Is there anything I can do to control the appearance of the status bar when the native mail composer window opens?
Here you can change your status bar style in you App info, Hope it will help for you.

Red Recording Bar in-app [duplicate]

I am developing a recording app, and I'd like to show a pulsing red double-height status bar on top of my app while the app is recording, and while the user is still in the app - just like Voice Memos. How do I do that?
I can get it so that the double-height red status bar appears when I am outside the app, but not while inside the app. Any hints? Is it actually possible at all?
to answer the last question first: it is possible, though i don't know whether the mechanism for causing to happen in other apps can be applied to your own.
to answer your next to questions "how do i do that? any hints?": one hint would be to simply hide the [UIApplication sharedApplication] statusBar inside of your app conditionally based up whether you are in record mode or not, and create your own pulsing status bar to simulate the one that is being presented in other apps. i hide the status bar conditionally in one of my apps, and you can then present whatever you want in the status bar area.

iOS: Pulsing red double-height status bar

I am developing a recording app, and I'd like to show a pulsing red double-height status bar on top of my app while the app is recording, and while the user is still in the app - just like Voice Memos. How do I do that?
I can get it so that the double-height red status bar appears when I am outside the app, but not while inside the app. Any hints? Is it actually possible at all?
to answer the last question first: it is possible, though i don't know whether the mechanism for causing to happen in other apps can be applied to your own.
to answer your next to questions "how do i do that? any hints?": one hint would be to simply hide the [UIApplication sharedApplication] statusBar inside of your app conditionally based up whether you are in record mode or not, and create your own pulsing status bar to simulate the one that is being presented in other apps. i hide the status bar conditionally in one of my apps, and you can then present whatever you want in the status bar area.

Show NSWindow as dropdown from NSStatusItem?

How can I show an NSWindow when clicking on an NSStatusItem, such that it shows over other applications when appearing, but without causing them to lose active status?
I have seen MAAttachedWindow, and it is neat but it does not show on top of other applications unless its own application is active.
I would check out this excellent tutorial and sample project:
Cocoa Popup window in the Status bar
That example shows how to "attach" a window to a status bar item, but you could position the window wherever you want. Basically, if you define your app as a LSUIElement you can display floating utility windows despite your app never activating or showing a dock icon, and other apps still remain key.
if you use MAAttachedWindow, you can set the winow level as NSStatusWindowLevel. Then it will show on top of other application.