ios9

How to hide the shortcut bar in iOS9

巧了我就是萌 提交于 2019-11-26 08:20:23
问题 I have a textfield with a hidden keyboard (since I\'m using it with bluetooth). However, in iOS9 the shortcut bar keeps appearing. Is there a way to hide it too? Thank you so much! 回答1: You can pass your textfield name in place of userNameTextField for which you want to remove shortcut bar. UITextInputAssistantItem* item = [userNameTextField inputAssistantItem]; item.leadingBarButtonGroups = @[]; item.trailingBarButtonGroups = @[]; 回答2: In Swift 2.0 if #available(iOS 9.0, *) { let item :

UIAlertController - add custom views to actionsheet

送分小仙女□ 提交于 2019-11-26 07:56:20
问题 I\'m trying to make the actionsheet as it shows in the messages app on iOS when we try to attach an image as in the screenshot. I realized in new UIAlertController, we can\'t fit any custom views. Any way I can make exactly this? My code looks pretty standard. let alertController = UIAlertController(title: \"My AlertController\", message: \"tryna show some images here man\", preferredStyle: UIAlertControllerStyle.ActionSheet) let okAction = UIAlertAction(title: \"oks\", style: .Default) {

Google Sign-In crashes on iOS 9 attempting to call canOpenURL

∥☆過路亽.° 提交于 2019-11-26 07:35:18
问题 While testing Google Sign-In 2.1.0 on the iOS 9 SDK, invoking GIDSignIn.sharedInstance().signInSilently() ends up crashing on an internal Google Sign-In SDK call to canOpenURL . -canOpenURL: failed for URL: \"com.googleusercontent.apps.1234567890-abcdefghijklmnopqrstuvwxyz://a\" - error: \"This app is not allowed to query for scheme com.googleusercontent.apps.1234567890-abcdefghijklmnopqrstuvwxyz\" *** Terminating app due to uncaught exception \'NSInvalidArgumentException\', reason: \'Your

Is it possible to opt your iPad app out of multitasking on iOS 9

青春壹個敷衍的年華 提交于 2019-11-26 07:32:32
问题 I have a large app that I will need some time to optimize for iOS9. Edit: What I am worried about is all the UI getting squeezed together when the app window size is reduced. So my question is, is there any way to force full screen for the app? 回答1: You have to modify your project to support multitasking. According to WWDC 2015 video, to adopt your app for multitasking, satisfy these requirements: Build your app with iOS 9 SDK Support all orientations Use Launch Storyboards So, if any of this

Core Data - Failed to load optimized model at path

拈花ヽ惹草 提交于 2019-11-26 07:29:45
问题 I\'m getting some of these prints in my console while running my application from Xcode 6 in my iPhone 6 with iOS 9 beta 5: CoreData: Failed to load optimized model at path \'/var/mobile/Containers/Bundle/Application/0000000B-BDBC-0000-000B-0000FB00000B/Distribution.app/database.momd/database.omo\' I cound\'t find something related to this, does anyone have some clue about this message? 回答1: I've run into this issue and did some digging around. I've been building with Xcode 6.4 and it looks

Unexpected CFBundleExecutable key

☆樱花仙子☆ 提交于 2019-11-26 04:39:16
问题 After spending some time googling, something tells me that the issue is new. We had a fully functional project supporting iOS7-8. Of course it was multiple times successfully submitted to AppStore. We use pods, lots of tracking and monitoring, like GA and Instabug. Now we decided to submit a version of the app built on Xcode 7 on iOS 9 to TestFlight. We disabled bitcode, since many pods, like Flurry and other prebuilt libraries does not include it. The build was successful, after the

iOS Universal Links are not opening in-app

北城余情 提交于 2019-11-26 04:05:09
问题 So I followed this tutorial exactly and use the same values as the ones provided: https://blog.branch.io/how-to-setup-universal-links-to-deep-link-on-apple-ios-9 The Apple Association file is also ready in the link directory: WEB_PAGE:PORT_NUMBER/apple-app-site-association Everything seems to be set up on this side. I\'ve added the entitlements, updated the provisioning profile, and everything\'s set up. When I run the app on my device, and open the link http://WEB_PAGE:PORT_NUMBER , this

Add views in UIStackView programmatically

我只是一个虾纸丫 提交于 2019-11-26 03:48:04
问题 I\'m trying to add views in UIStackView programmatically. For now My code is: UIView *view1 = [[UIView alloc]init]; view1.backgroundColor = [UIColor blackColor]; [view1 setFrame:CGRectMake(0, 0, 100, 100)]; UIView *view2 = [[UIView alloc]init]; view2.backgroundColor = [UIColor greenColor]; [view2 setFrame:CGRectMake(0, 100, 100, 100)]; [self.stack1 addArrangedSubview:view1]; [self.stack1 addArrangedSubview:view2]; When i deploy the app, there is only 1 view and it is with black colour.(view1

NSURLSession/NSURLConnection HTTP load failed on iOS 9

不打扰是莪最后的温柔 提交于 2019-11-26 03:13:48
问题 Tried to run my existing app on iOS9 but getting failure while using AFURLSessionManager . __block NSURLSessionDataTask *task = [self.sessionManager dataTaskWithRequest:request completionHandler:^(NSURLResponse * __unused response, id responseObject, NSError *error) { if (error) { } else { } }]; [task resume]; I get the following error: Error Domain=NSURLErrorDomain Code=-999 \"cancelled. Also getting following logs: NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL,

How can I add NSAppTransportSecurity to my info.plist file?

假装没事ソ 提交于 2019-11-26 01:27:51
问题 https://developer.apple.com/videos/wwdc/2015/?id=711 @5:55 I can\'t seem to be able to add this to my info.plist. There is no value it. I\'m running XCode Version 7.0 beta (7A121l), and testing on iOS9. Because I can\'t specifically declare what URL\'s I want as seen in the video, I keep getting \"App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app\'s Info.plist file\" errors. However, I don\'t