ios9

iOS 9 iPad Keyboard get rid of “undo view”

不问归期 提交于 2019-12-04 10:11:48
问题 How is it possible to get rid of this annoying "undo view" shown on the iPad in iOS 9. Below is my own keyboard, above my accessory view. (just for testing purposes in this ugly color). Can someone please tell me how to remove it? Thanks in advance. 回答1: For Swift 2.0, You can place this code in viewDidLoad and it will work like a charm. if #available(iOS 9.0, *) { let item = yourTextView.inputAssistantItem item.leadingBarButtonGroups = [] item.trailingBarButtonGroups = [] } else { //

css rules doesn't work properly on iOS9

江枫思渺然 提交于 2019-12-04 10:01:49
i have a problem with iOS9 about site's css. css rules works fine on android and iOS8. but on iOS9, site messed up. this is the difference ios8 and ios9. What is the possible problem and how can i fix this? Thanks for help. css: section.destinations { float: left; width: 82.5%; display: inline-block; position: relative; overflow: hidden; margin: 0 auto; font-weight: 300; font-size: 1.25em; } .content-wrap { position: relative; border-radius: 5px; } .content-wrap section { margin: 0 auto; max-width: 1200px; text-align: center; padding: 10px; border-radius: 5px; background-color: white; display:

Using a Metal shader in SceneKit

Deadly 提交于 2019-12-04 09:59:54
I'd like to use a Metal shader to apply a toon/cell shading to materials used in the scene. The shader I'm trying to implement is Apple's own AAPLCelShader found in the MetalShaderShowcase . I'm a little new to implementing shaders in SceneKit so I could be doing everything completely wrong. From what I understand in the documentation a Metal or GL shader can be used to modify SceneKit rendering as of iOS 9 and Xcode 7. The documentation suggests that this is done in the same way as GL shaders. My method is to try and get the path for the .metal file and then load it into a string to be used

iOS9 AVSpeechUtterance rate for AVSpeechSynthesizer issue

前提是你 提交于 2019-12-04 09:44:39
问题 The AVSpeechUtterance rate does not work the same for iOS 9 and prior versions of OS. Which is the change I have to make so that the sentence is spoken at the same speed. Are there any other changes I need to make for iOS9? It seems that multiplying the AVSpeechUtterance.rate by 6.0 works fine. Thank you! 回答1: I also see the change after compiling with the new XCode. Below are my mappings from old to new speed. I now have different speed assignments if device is <= iOS8 or >= iOS9. iOS 8 iOS

NEVPNManager Connect to VPN in Swift

点点圈 提交于 2019-12-04 09:44:01
问题 I can't find a clear answer on how to do this, so that's why I created this thread. I'm developing a Swift application (Swift 2), where I want to connect with an VPN Server using a function. So I want to create a func connect() { //Handle the connection to the VPN } I received this https://gist.github.com/matthijsotterloo/cedf256f7f1c2a9a8f624481b7083afd file from the developer who made the VPN (of course I replaced certs,keys,url's and login's. Now my question is how can I connect to this

Is there an alternative to (the deprecated) canOpenURL in iOS 9?

余生颓废 提交于 2019-12-04 09:35:54
I am using apple's canOpenURL: and openURL: methods to detect & open other application. But as these methods are deprecated in iOS9, They returns NO. Is there any alternate to manage this? Thanks Tikhonov Alexander You need to provide "whitelist" to your plist <key>LSApplicationQueriesSchemes</key> <array> <string>urlscheme</string> <string>urlscheme2</string> <string>urlscheme3</string> <string>urlscheme4</string> </array> See for more details iOS 9 has made a small change to the handling of URL scheme. More details Here you can find some information. as the article said: Up until iOS 9, apps

iOS custom URL schemes vs. Universal Links and Android counterpart

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 09:32:44
I'm looking for functionality where when a user receives a message - let's say through the WhatsApp app - containing a link starting with a certain scheme (prefix), my app will be invoked when the user taps on that link. I understand that this feature is already available as "custom URL schemes" but I also noticed now that Universal Links have a similar thing. So, is there any issue with "custom URL schemes"? I don't want to use Universal Links because I don't want my app to be restricted to iOS 9. Moreover, it looks like Android also has this feature of customer URL, but again, on the latest

UIKeyboardWillShowNotification not calling and only UIKeyboardWillHideNotification calling in iOS 9

不想你离开。 提交于 2019-12-04 09:27:28
All is working good till iOS 8. But when user tap on text field control comes directly in UIKeyboardWillHideNotification notification Log in console -Can't find keyplane that supports type 4 for keyboard iPhone-PortraitTruffle-NumberPad; using 675849259_PortraitTruffle_iPhone-Simple-Pad_Default Here is the code-- ` In view did load - (void)viewDidLoad { [super viewDidLoad]; self.txtMobNumber.delegate = self; self.txtMobNumber.keyboardType = UIKeyboardTypeNumberPad; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow:) name:@"UIKeyboardWillShowNotification

automaticallyAdjustsScrollViewInsets doesn't work in iOS9

我的梦境 提交于 2019-12-04 09:22:22
In my app I have lots of VCs with scrollviews of all kinds (table, collection, etc.). All of them appear inside NavigationController and I used .automaticallyadjustsscrollviewinsets property of VC to prevent content from going under the NavigationBar. It works fine prior to iOS9. I've updated my test iPhone to iOS9 yesterday and noticed that all scrollviews now does not have proper insets. I've updated XCode to latest version (7.0) and rebuilt the app - no effect. I've checked on the other device, which is still running iOS8.x - insets work correctly. I looked through iOS9 sdk changelogs and

setStatusBarHidden deprecated, but only thing that works

允我心安 提交于 2019-12-04 09:17:03
问题 I've tried all the solutions I can find including those in: setStatusBarHidden is deprecated in iOS 9.0 but none of them work with my application. It is a simple, single view application. There is a Navigation bar with a single button on it which the status bar should show on top of. In my .plist: Status bar is initially hidden: NO Status bar style: UIStatusBarStyleLightContent View Controller based status bar appearance: NO Changing any of these doesn't seem to make any difference at all. I