ios9

iOS 9 safari iframe src with custom url scheme not working

Deadly 提交于 2019-11-27 09:37:13
问题 I use this solution https://gist.github.com/davidwkeith/2662899 to redirect from web page into my app if app installed. But it doesn't work on iOS 9. It's still working in Google-chrome. But iframe with custom URL scheme can't launch the application from Safari. If I replace document.getElementById('loader').src = 'custom-protocol://my-app' (where loader is iframe) with window.location = 'custom-protocol://my-app' it will work. os: iOS 9 beta4 and beta5 Anybody knows this problem? Is it iOS 9

UITableView Empty with iOS 9 beta 5 update

大城市里の小女人 提交于 2019-11-27 09:28:27
After updating to Xcode 7 and then the iOS 9 beta 5 on my iPhone, none of my UITableViews are displaying data, except one. They are all downloading information from my Parse database, and the one that works, is downloading everything perfectly for one section of the table, but not the other. The other 3 table views download the information, and calculate the correct number of rows, however nothing is being displayed. I tried just displaying static text for all cells, however it is not even displaying that. Any clue of what is going on? I don't think it is a problem with downloading the Parse

Google Maps URL scheme not working on iOS 9

风格不统一 提交于 2019-11-27 09:25:23
The following URL scheme was working on previous version but doesn't work anymore on iOS 9: comgooglemaps://?q=Google+Japan,+Minato,+Tokyo,+Japan&center=35.660888,139.73073&zoom=15&views=transit Did something change on iOS 9 that prevent apps from opening other apps using URL schemes? Janu Gandhi In iOS 9, Apple has made a change to the handling of URL schemes. Now you need to add "LSApplicationQueriesSchemes" key in plist and then add URLScheme you want to call. <key>LSApplicationQueriesSchemes</key> <array> <string>comgooglemaps</string> </array> In iOS 9.0, further restrictions were placed

UI Testing Failure - Neither element nor any descendant has keyboard focus on secureTextField

人盡茶涼 提交于 2019-11-27 09:10:25
问题 This is my case: let passwordSecureTextField = app.secureTextFields["password"] passwordSecureTextField.tap() passwordSecureTextField.typeText("wrong_password") //here is an error UI Testing Failure - Neither element nor any descendant has keyboard focus. Element: What is wrong? This is working nice for normal textFields , but problem arise only with secureTextFields . Any workarounds? 回答1: This issue caused me a world of pain, but I've managed to figure out a proper solution. In the

“changing property masksToBounds in transform-only layer, will have no effect” in Xcode 7

爷,独闯天下 提交于 2019-11-27 09:09:57
问题 I am receiving this warning in the debugger console when I launch my app on iPad Xcode 7 beta 6 . There was no such warning till Xcode 6 . I don't understand why it may have come and that too, only on iPad. According to an Apple forum thread it could be a bug from Apple's side. Has anyone found a solution for this? 回答1: In order to get rid of this error un check clip to bounds option and put scale to fill to view to all view,UIStackView you have used in your project. 回答2: This is a bug in iOS

Is it possible to disable ATS in iOS 9 just for debug environment?

只愿长相守 提交于 2019-11-27 08:51:36
I'm working on a development environment without HTTPS setup. Is it possible to automatically disable ATS just for the development (debug) mode? My solution is to keep ATS disable option at the default NO value and add a New Run Script Phase to change it in the app bundle's Info.plist when building the app. This is the script: #Disables ATS in debug builds. INFOPLIST="${TARGET_BUILD_DIR}"/"${INFOPLIST_PATH}" case "${CONFIGURATION}" in "Release"|"Adhoc") /usr/libexec/PlistBuddy -c "Set :NSAppTransportSecurity:NSAllowsArbitraryLoads NO" "${INFOPLIST}" ;; "Debug") /usr/libexec/PlistBuddy -c "Set

Require ForceTouch iOS App

回眸只為那壹抹淺笑 提交于 2019-11-27 07:43:58
问题 Is there a way to write an app's "Required device capabilities" such that the app runs only iPhone 6s and above (due to a requirement of force touch)? 回答1: You normally use the UIRequiredDeviceCapabilities key, which can require certain features to be present. However at this time it doesn't seem like 3D Touch has been added. A large warning will have to suffice for now, while waiting for apple to add 3D touch as a thing you can require. Otherwise there might be some features only the new

Protocol Extension, Mutating Function

折月煮酒 提交于 2019-11-27 07:34:53
问题 I am using swift 2.0, I have a protocol and an extension on the protocol to create a default implementation of a method, the code is as fallows: protocol ColorImpressionableProtocol { var lightAccentColor: UIColor? {get set} var accentColor: UIColor? {get set} var darkAccentColor: UIColor? {get set} var specialTextColor: UIColor? {get set} mutating func adoptColorsFromImpresion(impresion: ColorImpressionableProtocol?) } extension ColorImpressionableProtocol { mutating func

Swift Compiler Error: Use of unresolved identifier 'name'

别说谁变了你拦得住时间么 提交于 2019-11-27 07:34:34
问题 I tried to include a class called 'name' and I got an error: Swift Compiler Error: Use of unresolved identifier 'name' The class exists and doesn't contain any compile errors. 回答1: There could be a few possible issues. One of the classes has a Testing target and other one doesn't. You have to even include all of your classes in the testing target or none of them. If it's Objective C class, check that the class is in ObjectiveC bridging header file. If it's NSManagedObject subclass. Add @objc

Facebook Login - iOS 9 - Without Safari

痴心易碎 提交于 2019-11-27 07:25:43
It worked fine to login with logInWithReadPermissions in iOS 8, but as soon after the update to iOS 9 it keeps opening Safari or a modal UIWebView. Does anyone have the same issue? FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init]; [login setLoginBehavior:FBSDKLoginBehaviorNative]; [login logInWithReadPermissions:@[@"public_profile",@"email"] fromViewController:nil handler:^(FBSDKLoginManagerLoginResult *result, NSError *error) { NSLog(@""); }]; Seems there's no way to get the previous behavior using newests FB SDKs in iOS9+. You can use an old SDK to do that. Here's a response from