ios9

How to disable Picture in Picture mode for default video player

两盒软妹~` 提交于 2019-12-10 23:57:57
问题 How can I disable Picture in Picture button/mode using Swift in iOS9 on iPad when user tries to play a video in my app? 回答1: Default AVPlayerLayers won't use PiP unless you use an AVPictureInPictureController. AVPlayerViewController has a property allowsPictureInPicture which you can set to false . 来源: https://stackoverflow.com/questions/32726385/how-to-disable-picture-in-picture-mode-for-default-video-player

SKSpriteNode UserInteractionEnabled Not Working

人走茶凉 提交于 2019-12-10 23:43:42
问题 I've looked everywhere but nothing works. Thought I would just ask the question myself. I'm creating a little game in iOS 9 using SpriteKit. My game is going to have left and right controller buttons to move the player sprite. I add the SKSpriteNodes for the directional pads as follows At the top of the main scene I put: private var leftDirectionalPad = SKSpriteNode(imageNamed: "left") private var rightDirectionalPad = SKSpriteNode(imageNamed: "right") Then I run a method called

Usage of NSUserActivity and CoreSpotlight

梦想与她 提交于 2019-12-10 23:06:47
问题 I have spent plenty of time to find benefit of NSUserActivity over CoreSpotlight , whether i couldn't find anything practically. Actually, it couldn't index our item, which we set through NSUserActivity . I have attached my snippet below, which supposed to work as per apple documentation,however it won't. let personName = "Jon Doe" let activity = NSUserActivity(activityType: "com.SearchAPIs.test”) activity.userInfo = ["name": "Jon Doe"] activity.title = person.name let keywords = personName

ReplayKit returns error “RPRecordingErrorFailedToStart”

ⅰ亾dé卋堺 提交于 2019-12-10 22:55:01
问题 I am trying to include recording functionality to my C++ based game with ReplayKit . I check that the iOS version is 9.0 or above in my game code, and if it is, I will call RecordReplayIOS::startRecording() and then the ReplayKit should start recording. For some reason the startRecordingWithMicrophoneEnabled function returns always an error -5803 , which according to API documentation means RPRecordingErrorFailedToStart . Any ideas what I am doing wrong? RecordReplayIOS.hpp : #ifndef __RECORD

Atlas images wrong size on iPad iOS 9

狂风中的少年 提交于 2019-12-10 22:31:11
问题 Since upgrading to iOS 9 I have this strange issue with image atlases in my SpriteKit game. In my game I have a StartScene, a MenuScene and a GameScene. In all 3 scenes I am using atlases for my enemies so I can animate them. All worked fine on all devices but since upgrading iOS 9 it causes me issues on iPads. On my iPad when I launch the game the enemies in StartScene are about 3 times as big as they should be. Whats strange is that when I move to menuScene or gameScene the enemies are

Airplay Button is not showing in Player Controls with AVPlayer

霸气de小男生 提交于 2019-12-10 21:52:08
问题 I created a Video Player using AVPlayer and AVPlayerViewController. I have set " allowsExternalPlayback " property to true and also " usesExternalPlaybackWhileExternalScreenIsActive " property to true. But still I am not getting Airplay Icon in Player Controls. player = AVPlayer(URL: url!) player!.allowsExternalPlayback = true player?.usesExternalPlaybackWhileExternalScreenIsActive = true I am running my app on ios 9.2. 回答1: You need to add an MPVolumeView in order to get this. You can read

App Installation Failed: App has disallowed Info.plist key

≡放荡痞女 提交于 2019-12-10 21:09:16
问题 Just recently I've run into errors while trying to install my app to my iOS 9 device, only difference that I can tell between now and then being I've updated my device to iOS 9 from iOS 8.4.1. I'm installing using Xcode 7, beta 6, and the error I get says "App installation failed: Unknown error." The, I suspect, more helpful error message I get is from the device logs during the install, the error message that seems to pertain to this is: Sep 14 13:10:47 Bill-Luhmanns-iPhone installd[50]

Xcode 7 - How to initiate interface recording for UI Testing?

蹲街弑〆低调 提交于 2019-12-10 19:59:32
问题 I'm looking at the WWDC 2015 session 104 "What's new in Xcode" and see that in Xcode 7 I can record interface unit tests to automate clicking on buttons, enter text, etc. I have a new project created with UITests included, but how do I actually start recording interface interactions for UITests? Here's the snippet included in the test: - (void)setUp { [super setUp]; // Put setup code here. This method is called before the invocation of each test method in the class. // In UI tests it is

How do I use SFSafariViewController with a dark theme like this user?

安稳与你 提交于 2019-12-10 19:53:50
问题 I saw in a screenshot to a StackOverflow question that a user presented a darkened SafariViewController: https://stackoverflow.com/a/36099965/998117 How is this accomplished? I can't seem to get it to take effect using UIAppearance . 回答1: It depends on the Safari App , if you enable private browsing mode then it will change in your app also 来源: https://stackoverflow.com/questions/36551946/how-do-i-use-sfsafariviewcontroller-with-a-dark-theme-like-this-user

library not found for -lCloudinary

你。 提交于 2019-12-10 18:46:14
问题 Library not found whenever I added from pod . I have already added pod from terminal. Error: ld:library not found for -lCloudinary clang: error: linker command failed with exit code 1 (use -v to se invocation) 回答1: When you perform pod install or pod update you must use the new <YourProject>.xcworkspace file instead of the old <YourProject>.xcodeproj file. It happens because .xcworkspace contains your .xcodeproj and the pods . If you just run .xcodeproj the pods will be missing. 来源: https:/