control-center

Can't use Control Center when UIAlertView displayed (iOS 7)

守給你的承諾、 提交于 2019-12-04 17:14:57
So i set up a retry connection when reachability detects no connection. I want the user to be able to use the Control Center to re-enable WiFi while the UIAlertView is presented. Anyway I can do this? Picture Of What Control Center Looks Like Picture Of A UIAlertView 来源: https://stackoverflow.com/questions/20225928/cant-use-control-center-when-uialertview-displayed-ios-7

Access iOS Control Center using appium

佐手、 提交于 2019-12-04 17:11:29
问题 I am trying to open the Control Center using appium and the following code: int halfWidth = driver.manage().window().getSize().width / 2; int screenHeight = driver.manage().window().getSize().height; driver.swipe(halfWidth, screenHeight-5, halfWidth, screenHeight-300, 500); // driver is instance of IOSDriver Instead of opening control centre the app simply draws on the screen upwards from the bottom (using coordinates input). Anyone know how to open Control Center using appium and swipe (or

AudioPlayer and lockscreen/control center control Swift [closed]

南笙酒味 提交于 2019-12-04 07:31:18
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . I'm new on Swift. I write because I want to ask a question. Me and my friend we are developing an audio player, but we have a problem. The player also works in background and remote controls from the lockscreen and the control center work, but if music is interrupted by one of these two controls, the play/pause button of our player is not updated with the correct icon. My question is, how can I make

How to hide “Now playing url” in control center

霸气de小男生 提交于 2019-12-03 13:31:33
问题 I am trying to hide livestream urls that are playing in an UIWebView . When you play a livestream url and open control center (iOS) you see the url that is playing: . I would like to hide that with a HTML-based or xcode-based script. 回答1: You can control this information with the MPNowPlayingInfoCenter. The defaultCenter 's nowPlayingInfo dictionary controls what is displayed about the current audio track on the lock screen and command center. MPNowPlayingInfoCenter *infoCenter =

Access iOS Control Center using appium

时光毁灭记忆、已成空白 提交于 2019-12-03 11:02:47
I am trying to open the Control Center using appium and the following code: int halfWidth = driver.manage().window().getSize().width / 2; int screenHeight = driver.manage().window().getSize().height; driver.swipe(halfWidth, screenHeight-5, halfWidth, screenHeight-300, 500); // driver is instance of IOSDriver Instead of opening control centre the app simply draws on the screen upwards from the bottom (using coordinates input). Anyone know how to open Control Center using appium and swipe (or any other way)? Thanks, Charlie We can do this. I tried in Appium 1.4.13 and I am able to change

How to hide “Now playing url” in control center

陌路散爱 提交于 2019-12-03 03:28:10
I am trying to hide livestream urls that are playing in an UIWebView . When you play a livestream url and open control center (iOS) you see the url that is playing: . I would like to hide that with a HTML-based or xcode-based script. You can control this information with the MPNowPlayingInfoCenter . The defaultCenter 's nowPlayingInfo dictionary controls what is displayed about the current audio track on the lock screen and command center. MPNowPlayingInfoCenter *infoCenter = [MPNowPlayingInfoCenter defaultCenter]; NSDictionary *nowPlayingInfo = @{ MPMediaItemPropertyTitle : @"Media Name",

check if control center is used

ε祈祈猫儿з 提交于 2019-12-02 03:13:47
My app is using internet access, and I want to know if there were used control center. If was used, I want to do some action, like start to update. I am stuck at this question. There are different guides, about "check if app is in background" or "check if wifi status changed", but no information about this. Any advices? You can't do it. The most you can know is that your app was deactivated and then activated again, but you have no way of finding out why. It could be because of the control center, it could be because of the notification center, it could be because a phone call came in, it

Cannot open iPhone Control Center on simulator

元气小坏坏 提交于 2019-12-01 03:39:48
I'm new to iOS coming from Android. I try to run simulator and open the Control Center on it. When I swipe from the bottom to up I see that it's empty. Any ideas what's going on with my simulator? I tried at iPhoneX simulator and have the same. Unfortunately the Simulator does not show a true Control Center. Yes, a blank screen appears, but no controls are available in there. Welcome to iOS ;] The problem not in Xcode but in iOS 11 simulator Solved I download iOS 10 simulator and control-center work good in Xcode 9.3 Control Center is not available in iOS Simulator but if you are looking for

Get current track playing on control center iOS

做~自己de王妃 提交于 2019-11-30 18:04:00
问题 I'm looking to get the current track playing on iOS whatever the app which is playing the track. I mean, for example, if I use SoundCloud or Spotify on my phone, the player on control center is the same, so I think it's possible to get the current track name. However I don't know how to do this, maybe someone could help me ? 回答1: Frustratingly you can only get the details of the songs playing on the Music (iPod) app: // Print the title of the currently playing song. NSLog(@"%@", [[

how to show seek track duration on control center

北慕城南 提交于 2019-11-30 11:09:55
问题 How do i pass the song info such as song name and track duration to control center. Player plays music fine and the play and pause control works fine though. Playing with apple's music app Playing with my app with the code below, how to pass song information in order to display it ? //AppDelegate -(void)setupAudio { // Set AVAudioSession NSError *sessionError = nil; [[AVAudioSession sharedInstance] setDelegate:self]; [[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback