ios10

How can upload a zip file into FTP server using swift 3 and iOS 10?

余生长醉 提交于 2019-12-08 09:48:38
问题 How can upload a zip file into FTP server using swift 3 and iOS 10? I need to do this in my app to send logs files. 回答1: You can use this framework to upload files to an FTP server: https://github.com/Constantine-Fry/rebekka With this, you just need to set configuration in AppDelegate (like this) and to upload you use this code: if let URL = NSBundle.main.URL(forResource:"MyLog", withExtension: "zip") { let path = "/upload/\(UUID.init().uuidString).zip" self.session.upload(URL, path: path) {

SpriteKit Camera position correction in iOS10?

只谈情不闲聊 提交于 2019-12-08 08:20:31
问题 When converting my App, which has a SpriteKit scene in it, to iOS 10 I have had to convert my scene's original camera position from: cameraNode.position = CGPoint(x: self.size.width/2, y: self.size.height/2) to account for iOS10 with: if #available(iOS 10, *) { cameraNode.position = CGPoint(x: self.size.width/2, y: (self.size.height + voidSize)/2) } else { cameraNode.position = CGPoint(x: self.size.width/2, y: self.size.height/2) } The iOS10 version actually makes more sense as I do have part

CKQuerySubscriptions are not supported in a sharedCloudDatabase

这一生的挚爱 提交于 2019-12-08 06:40:00
问题 I noticed that the docs mention that the newly introduced shared CloudKit databases do not support CKQuerySubscription (in earlier iOS versions these were called CKSubscription ). So I guess that means that it is not possible to notify users when privately shared records have changed. Major disappointment. Has anyone run into this problem? 回答1: According to the WWDC video about CloudKit this year: So, new this year in iOS 10, there's an API called CKDatabaseSubscription. This allows you to

IPv6 support using Parse.com

别说谁变了你拦得住时间么 提交于 2019-12-08 05:23:19
问题 My app was rejected today due to 'not supporting IPv6'. I've attached screenshots of the error they received which comes from a Parse.com API call. I could really use some help on this, as I have no clue where to start with this. Does anyone know if Parse.com supports IPv6? Or do I need to add something to my code? Do I need to migrate to Parse Server? Please help =\ ---- EDIT ---- 9/22/16 OK so, after my first rejection due to "IPv6" issues, I re-submitted and the app was approved. I'd still

CKQuerySubscriptions are not supported in a sharedCloudDatabase

一笑奈何 提交于 2019-12-08 03:17:27
I noticed that the docs mention that the newly introduced shared CloudKit databases do not support CKQuerySubscription (in earlier iOS versions these were called CKSubscription ). So I guess that means that it is not possible to notify users when privately shared records have changed. Major disappointment. Has anyone run into this problem? According to the WWDC video about CloudKit this year: So, new this year in iOS 10, there's an API called CKDatabaseSubscription. This allows you to subscribe to any change across an entire database, and it works in a private database, in a shared database.

Xcode 9, iOS 11, XCUITest failure: Main Thread Checker Flurry Analytics

北城以北 提交于 2019-12-08 00:25:42
问题 Running my suite of XCUITests using Xcode 9 running on iOS 11. Tests all run perfect in Xcode 8 (iOS10), but in Xcode 9 I get the following error: Main Thread Checker: UI API called on background thread [UIApplication statusBarOrientation]... ... Queue name: com.Flurry.Analytics.Session This can be fixed by commenting out all the Flurry code, but that is obviously not ideal. This issue has been seen by devs previously: https://github.com/flurry/flurry-ios-sdk/issues/91 However, in this case,

iOS 10. CoreData insert new object sig ABRT

时光总嘲笑我的痴心妄想 提交于 2019-12-07 18:34:57
问题 I tried forEntityName: "Game", "MyApp.Game". in my dataManagerFile: let appDelegate = UIApplication.shared().delegate as! AppDelegate let container = appDelegate.persistentContainer let managedObjectContext = container.viewContext for item in items { let word = NSEntityDescription.insertNewObject(forEntityName: "MyApp.Game", into: managedObjectContext) as! Game in Game+coreDataProperties file extension Game { @nonobjc class func fetchRequest() -> NSFetchRequest<Game> { return NSFetchRequest

iOS 10 push notification when app terminated?

青春壹個敷衍的年華 提交于 2019-12-07 17:04:14
问题 I'm face the problem after upgraded to iOS 10 about push notification (I am using Swift3). In normal case when application open or application still in background everything work as well (can receive push notification and update data as my logic). But when application is terminated i can't handle push notification when application become active. Here is my test case. Edit Scheme to Wait for executable to be launched. Double press home button and swipe application up. Run Xcode wait until

using KVO to observe WKWebView's URL property not work in iOS 10

若如初见. 提交于 2019-12-07 15:26:32
问题 I use WKWebView to load my webpage. When user click a button in webpage, my webpage will open a custom schema URL (e.g. asfle://download?media_id=1). And I use KVO to observe WKWebView's URL property to get the URL. It works well in iOS 9, but it doesn't work in iOS 10. I can't get the url. I use Xcode 8, swift 2.3. override func viewDidLoad() { super.viewDidLoad() webView.addObserver(self, forKeyPath: "URL", options: .New, context: nil) } override func observeValueForKeyPath(keyPath: String?

iOS10 and Safari and Chrome no longer working with Bluetooth scanner

偶尔善良 提交于 2019-12-07 11:16:16
问题 This is almost an EXACT reoccurrence of problem that was in iOS 8 and finally fixed in iOS 8.3. That problem was documented here : iOS8 and Safari no longer working with Bluetooth scanner What's happening is using a bluetooth barcode scanner. Scanning into a web application produces inconsistent results. Sometimes more characters sometimes less. In the previous iOS 8 issue the problem was only in Safari. This time it's worse because the problem is now in both Safari AND Chrome. So there's no