ios9

Safari on iOS 9 does not trigger click event on hidden input file

前提是你 提交于 2019-11-29 02:00:59
I have a website with an upload field, but the input is hidden with display: none; and I have a div for calling this action. It worked on iOS 8, but now after the iOS 9 update, nothing happens when I touch in the div. I've tried using the [0].click() or pure VanillaJS like document.getElementById('file_input').click() and nothing works. All these methods work between iOS 5 and iOS 8. If you want, link to this example on JSFiddle: https://jsfiddle.net/o1r265tz/6/embedded/result/ $(document).ready(function(){ $(document).on('click touchstart', '.upload-box', function(e){ e.stopPropagation(); $('

How to use PHPhotoLibrary like ALAssetsLibrary

余生长醉 提交于 2019-11-29 01:46:23
For iOS9, ALAssetsLibrary is deprecated. So how to change it as PHPPhotoLibrary instead of ALAssets ? if (RecordedSuccessfully && recording == NO) { //----- RECORDED SUCESSFULLY ----- NSLog(@"didFinishRecordingToOutputFileAtURL - success"); ALAssetsLibrary *library = [[ALAssetsLibrary alloc] init]; if ([library videoAtPathIsCompatibleWithSavedPhotosAlbum:outputFileURL]) { [library writeVideoAtPathToSavedPhotosAlbum:outputFileURL completionBlock:^(NSURL *assetURL, NSError *error) { if (error) { } }]; } // i have tried this, but didnt work [[PHPhotoLibrary sharedPhotoLibrary] performChanges:^{

MFMailComposeViewController throws an error only in iOS 9

点点圈 提交于 2019-11-29 01:16:34
I can't get MFMailComposeViewController to open without throwing a fatal error in iOS 9 Simulator. The same code (Objective C) works flawlessly in iOS 8.x and lower but today I installed Xcode 7 beta 5 and when I run the app on iOS 9 Simulator, I get a dialog box titled "MailCompositionService quit unexpectedly" and when I view the error report, I see: Application Specific Information: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayI isEqualToString:]: unrecognized selector sent to instance 0x7fd314280b10' terminating with uncaught exception of

Disable Twitter Universal Deep Links

痞子三分冷 提交于 2019-11-29 00:46:45
问题 Update: It appears Twitter has fixed this issue. Clicking the authorize button now works! Thank you all for the responses. I have a UIWebView that opens and directs to Twitters Oauth/Authorize webpage. The user signs in with there Twitter details and authenticates the use of our application with there Twitter account. This process worked perfect before the release of Twitter 6.37 iOS application. What happens now is when the WebView detects https://twitter.com/oauth/authorize?oauth_token

Major iOS9 performance issues with Sprite Kit

南楼画角 提交于 2019-11-29 00:45:50
问题 I am experiencing HUGE performance issues with iOS9 and I just can't figure out what to do. I've read many posts - here, and here for example, but their suggested solutions don't help or make little difference. My game has gone from 60fps on an old iPad 2 (iOS 8.4) to < 15fps on a new iPad mini (iOS 9). I'm trying to work out the main culprit. I'm pretty certain one of them is SKCropNodes. I usually render several SKCropNodes in my scene (6 - 18). This was never an issue in iOS8, but it

Unable to pause SKEmitterNode in iOS9

吃可爱长大的小学妹 提交于 2019-11-29 00:35:50
问题 I've tried few workarounds, but still I can't pause existing particles on iOS9 . I am using following technique to pause the scene: pause the scene with self.paused = YES; set custom globalPause = YES; variable to control update: method execution (because update: still runs while scene is paused). The point is that I don't pause the view, but rather the scene. I don't pause the view, because of this. Here is the code which can reproduce this issue on iOS9 : #import "GameScene.h" @interface

iOS 9: Frame no longer set in viewWillAppear after UINavigationController pushViewController

谁说我不能喝 提交于 2019-11-28 23:21:30
I'm trying to solve a view placement bug that has arisen as of iOS 9. I am instantiating a view controller from a xib file (non-autolayout) and then pushing this onto my UINavigationController . The problem is that when the view controller's viewWillAppear method is called, its frame has not yet been adjusted to the navigation controller's size and is still what was set in the xib file. It doesn't get set properly now until viewDidAppear . This is completely screwing up my code. Does anyone know precisely what has changed that is causing this and what is the best way to handle it? I don't want

What is the impact of the “Requires full screen” option in Xcode for an iPhone-only app?

雨燕双飞 提交于 2019-11-28 22:20:28
For an iPad-only app or a universal app, the "Requires full screen" option tells Xcode/iOS whether the app supports iPad multitasking feature introduced in iOS 9. But the "Requires full screen" option is also present if it's an iPhone-only app. In this case, what is the impact of this option? There is no impact at all. Apple engineers thinks that its not required to hide, or may be Plus phones will get landscape slide over in later iOS versions :) From the documentation : To opt out of being eligible to participate in Slide Over and Split View, add the UIRequiresFullScreen key to your Xcode

iOS 9 … Are WebView(s) exempt from the App Transport Security Exceptions (ATS) rules that block insecure HTTP hosts?

时光毁灭记忆、已成空白 提交于 2019-11-28 21:16:42
In iOS 9, Apple is blocking insecure HTTP connections for apps, unless specific hosts are whitelisted. http://ste.vn/2015/06/10/configuring-app-transport-security-ios-9-osx-10-11/ Are WebView(s) exempt from these rules for obvious reasons, or are we still expected to whitelist hosts that a browser opens... including all links from a given page? I wasn't sure if this was our responsibility or if that was exempt. SFSafariViewController can show HTTP without the NSAppTransportSecurity key. UIWebView and WKWebView require the NSAppTransportSecurity key mentioned above to display HTTP pages.

Swift: How to remember cookies for further http requests

筅森魡賤 提交于 2019-11-28 20:36:45
I am working on a login application. After successful login response comes back with cookie data. How can I use/save this data for my future requests? For starters I am trying to save it in NSHTTPCookieStorage . But that is also not working. Login Method(partial): let task = session.dataTaskWithRequest(request) { (data, responseData, error) -> Void in if let response = responseData as? NSHTTPURLResponse { statusCode = response.statusCode print("Response code: \(statusCode)") } var json: NSDictionary? do { json = try NSJSONSerialization.JSONObjectWithData(data!, options: .MutableLeaves) as?