ios8

Display status bar on landscape orientation for iOS 8

…衆ロ難τιáo~ 提交于 2019-12-12 08:08:30
问题 Currently using XCode6 at the moment. Since this version of XCode only supports iPhone4 and above with OS version (7.0.3 onwards). I have this application solely designed with a landscape orientation to all of the views in the storyboard. Testing the application using version 7.0.3 was fine, the status bar was still visible. It wasn't the same for version 8.0 wherein the status bar was hidden. My question is how is it possible to display the status bar on my landscape oriented application

completionHandler of AVAudioPlayerNode.scheduleFile() is called too early

痞子三分冷 提交于 2019-12-12 08:06:12
问题 I am trying to use the new AVAudioEngine in iOS 8. It looks like the completionHandler of player.scheduleFile() is called before the sound file has finished playing. I am using a sound file with a length of 5s -- and the println() -Message appears round about 1 second before the end of the sound. Am I doing something wrong or do I misunderstand the idea of a completionHandler? Thanks! Here is some code: class SoundHandler { let engine:AVAudioEngine let player:AVAudioPlayerNode let mainMixer

Enterprise Distribution not playing nice with iOS8 in Swift App

五迷三道 提交于 2019-12-12 07:59:41
问题 I'm having issues running Enterprise builds onto iOS 8 devices with my swift app. It seems to be working fine if i use a non-enterprise account to code-sign. Is anyone experiencing this issue? Here is a crash log that I am getting on an iOS device when attempting to run a build with an enterprise account to codesign: OS Version: iOS 8.0 (12A4345d) Report Version: 105 Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes: 0x0000000000000001, 0x00000001200d5088 Triggered by Thread: 0 OS

How to use create and use a UIImageAsset in iOS 8

让人想犯罪 __ 提交于 2019-12-12 07:56:52
问题 iOS 8 introduces a UIImageAsset class with a method registerImage:withTraitCollection: . How do I use this class? 回答1: Normally, you won't have to. Instead, you'll use an asset catalog. UIImageAsset, in iOS 8, is simply the mechanism underlying image sets in asset catalogs. For example, in iOS 8, an asset catalog can distinguish between versions of an image intended for different size class situations, using the Width and Height pop-up menus to specify different size class possibilities. Then

iOS 8 - Disable iCloud Photo Sharing Activity

你说的曾经没有我的故事 提交于 2019-12-12 07:56:47
问题 Apparently iOS8 by default adds a "iCloud Photo Sharing" activity to activity views in iOS8 and I haven't found any useful documentation regarding it, especially how to explicitly remove it (going into the "More" option allows the user to toggle showing/hiding it, but for our app we want to completely disallow this option). Has anyone figured anything out about how to disable this? Any input would be appreciated. Thanks! 回答1: If you init your UIActivityViewController with full of images,

How to make custom keyboard extension become first responder again

放肆的年华 提交于 2019-12-12 07:49:18
问题 I am making a custom keyboard extension, and in this keyboard, i have another uitextfield as a search field, so when I type on the custom keyboard, I am not sending the text to the safari's textfield or some chat app's textfield, I am sending the text to the uitextfield search field in the custom keyboard, so I can do some search and then when the search results come back, i am sending the search result to the safari's textfield or some chat app's textfield. So there is a first responder

iOS TestFlight: Internal Tester not receiving invite

牧云@^-^@ 提交于 2019-12-12 07:39:56
问题 I set up a build and add two Internal Testers. Immediately after pressing the "Invite" button I noticed that the checkbox next to my email address was the only one that remained checked. The checkbox next to the second tester was unchecked. So I clicked the checkbox and sent another invite, but the same thing happened. I thought nothing of it, figuring it would become checked when he actually installed and tested the app. But he says he never received an invite. Does anyone know if I'm doing

How to LogOut from iOS ADAL Authentication?

假装没事ソ 提交于 2019-12-12 07:35:53
问题 I have integrated ADAL library into my iOS application and it's working fine. But now I want to log out from ADAL. How can I do log out? 回答1: There are two places where sign-in state is stored when using an ADAL interactive flow. The first is the token cache that is entirely in the control of the app. Calling [authContext.tokenCacheStore removeAllWithError:&error] is a good way to clear all cached tokens and stop ADAL from being able to login without launching the browser at all. However,

Can a custom keyboard extension identify a user of my companion application in any way?

假装没事ソ 提交于 2019-12-12 06:58:08
问题 Can a custom keyboard app extension detect a specific user’s identity based on settings/credentials/identification mechanism in the companion app or otherwise? By "identifying a specific user", I mean in the context of my own application/service/brand, not personal/phone data on their device. Or is it always a static keyboard, always unable to determine the user/phone using it? 回答1: I think you should be able to. In your companion app, put whatever identifier you want in the NSUserDefaults ,

iOS Download code when app is running

好久不见. 提交于 2019-12-12 06:23:17
问题 I am aiming at downloading code (library / framework / bundle) when the app is running. This is like download specific modules based on user's ACL. I have gone through creating static library and framework which seems like we need them when code signing app. But I need the code to be downloaded when user is using the app and run that code. Pls provide some samples 来源: https://stackoverflow.com/questions/35202560/ios-download-code-when-app-is-running