ios9

How to open url in Safari and the get back to the app under UITests in Xcode 7?

荒凉一梦 提交于 2019-12-03 05:47:30
This is my custom view where "LondonStreet" is a button. When I tap that button I get url and open it in Safari (it works). Then I can go back, using "Back to Wishlist" button (it also works). The problem is when I try to test this under UITests. itemsTable.cells.elementBoundByIndex(0).buttons["addressButton"].tap() //press the button to open link in Safari Along with this line: app.statusBars.buttons["Back to Wishlist"].tap() //go back, doesn't work, although it was recorded by Xcode itself. is an error: UI Testing Failure - Failed to get screenshot within 5s. And also in issue Navigator UI

What is nonnull in objective C?

北城以北 提交于 2019-12-03 05:28:52
Can someone elaborate why is nonnull introduced in iOS 9 ? For example, the NSArray method + (instancetype)array; is now + (instancetype nonnull)array; Refer to : https://developer.apple.com/library/prerelease/ios/releasenotes/General/iOS90APIDiffs/frameworks/Foundation.html Is this an objective-c level feature, and how would this affect the existing apps ? Mrunal They have made sure that wherever the type is not-nullable it is now a nonnull type. Like earlier NSMutableArray addObject method was - (void)addObject:(ObjectType)anObject and now it has been changed to - (void)addObject:(ObjectType

iOS9 self.canDisplayBannerAds = true is not showing any ads [closed]

大城市里の小女人 提交于 2019-12-03 05:09:36
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . Very simple iAd code: import UIKit import iAd class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() self.canDisplayBannerAds = true } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() } } iAd.framework is loaded. It used to work. After iOS9, not

iOS9: duplicated lines in crash reports are causing symbolicatecrash to get stuck

谁说胖子不能爱 提交于 2019-12-03 05:08:54
This is not a question because I have already found a workaround. I am publishing it so that others can take advantage on the hours I was spending on it, and use my suggested workaround. I have got some strange crash reports - a single line was duplicated many times: ... 0x190e08000 - 0x190e49fff Notes arm64 <f45c09ce977b3282ab0e879252dfebee> /System/Library/PrivateFrameworks/Notes.framework/Notes 0x190f9c000 - 0x190fa6fff NotificationsUI arm64 <73dcb247ed183ce7bb330d7bb55f93bd> /System/Library/PrivateFrameworks/NotificationsUI.framework/NotificationsUI 0x190fa8000 - 0x190faafff OAuth arm64

scrollToRowAtIndexPath:atScrollPosition causing table view to “jump”

痞子三分冷 提交于 2019-12-03 05:04:47
问题 My app has chat functionality and I'm feeding in new messages like this: [self.tableView beginUpdates]; [messages addObject:msg]; [self.tableView insertRowsAtIndexPaths:@[[NSIndexPath indexPathForRow:messages.count - 1 inSection:1]] withRowAnimation:UITableViewRowAnimationBottom]; [self.tableView endUpdates]; [self.tableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:messages.count - 1 inSection:1] atScrollPosition:UITableViewScrollPositionBottom animated:YES]; However, my table view

iTunes Connect error: “An In-App Purchase has been returned”

会有一股神秘感。 提交于 2019-12-03 04:48:18
问题 I'm seeing the following error in iTunes Connect in the in-app purchase section for my app: An In-App Purchase has been returned and is highlighted in the table below All of the in-app purchases for a new app have been rejected. They all show a status of Developer Action Needed . Going to each individual in-app purchase shows an exclamation sign with: Your In-App Purchase has been returned. You must modify or delete the highlighted item. However, it there's no explanation at all of what the

iOS9 storyboard what is unhandled action (handleNonLaunchSpecificActions)?

一曲冷凌霜 提交于 2019-12-03 04:39:08
问题 I've noticed the following error popping up in the console when running my app on iOS 9 when using a storyboard. I'm using xCode7. Is this something I need to be concerned about? -[UIApplication _handleNonLaunchSpecificActions:forScene:withTransitionContext:completion:] ** unhandled action -> <FBSSceneSnapshotAction: 0x176bfb20> { handler = remote; info = <BSSettings: 0x176a5d90> { (1) = 5; }; } 回答1: There is nothing wrong with your code. This is a logging message internal to Apple, and you

How can I reset iOS 9 Universal Linking settings?

a 夏天 提交于 2019-12-03 04:08:19
问题 While testing universal links on my iOS 9 app, I accidentally tapped "mywebsite.com >" (top right corner). This made the app navigate to the website again. Now I can't seem to make universal linking work again. Seems like iOS has remembered my preference that I would like to see links opened in Safari as opposed to my app. Has anyone run into this? Is there a way to reset this? 回答1: You can long-press on a universal link and it will give you an action sheet with an "Open in 'AppName'" option.

NEVPNManager Connect to VPN in Swift

柔情痞子 提交于 2019-12-03 03:51:33
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 VPN server in the function? I already found out I have to use the NEVPNManager but I can't really find

iOS9 AVSpeechUtterance rate for AVSpeechSynthesizer issue

最后都变了- 提交于 2019-12-03 03:14:19
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! 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 9 Very Slow 0 0.42 Slower 0.06 0.5 My Normal 0.15 0.53 Faster 0.23 0.56 I've bumped into this issue a few