ios10

Could not find Developer Disk Image iOS 10

天大地大妈咪最大 提交于 2019-12-03 13:10:17
问题 I have updated my iOS device to iOS 10, now Xcode says "Could not find Developer Disk Image" while trying to run on iPhone using Xcode 7.3.1 How can I fix the problem and make Xcode support iOS 10 devices? 回答1: If you want to develop with Xcode 7 on your iOS10 device : Rename your Xcode.app to Xcode7.app and download Xcode 8 from the app store. Run Xcode 8 once to install it. Open the terminal and create a symbolic link from Xcode 8 Developer Disk Image 10.0 to Xcode 8 Developer Disk Image

iOS 10 Messages Extension - Wrong Layout when using Storyboard Segue

一笑奈何 提交于 2019-12-03 12:45:42
When using Segues in Messages Extension Application the layout gets messed up. Is there any way to solve this issue while still using storrybord segues? Screenshots: (Note: The first and second View / ViewController are identical. The segue-type doesn't matter) Expanded Presentation Style: Compact Presentation Style: Update 1: The top and bottom layout guides reset after a segue compact: top: should be: 0 but is: 20 bottom: should be: 44 but is: 0 expanded: top: should be: 86 but is: 20 bottom: should be: 44 but is: 0 P.S. Can someone create a new "messages-extension" tag? I hope this won't

iOS10 - ContentView Blocking Touches of UIButton in UITableView Header

蹲街弑〆低调 提交于 2019-12-03 12:35:40
I am in the process of updating my app to iOS10 with Swift 2.3 and Xcode 8 Beta 1 and I have found that there is a UITableViewHeaderFooterContentView which is blocking touches to the UIButton on my subclass of UITableViewHeaderFooterView . On the Xcode 8 Beta 1 simulator the UIButton works on iOS9.3 but not iOS10. 1) Is there any documentation for this? 2) How can I ensure my UI elements are on top of the new Content View in iOS10? (or allow touches through the UITableHeaderFooterContentView ) Thanks! Table Header import UIKit class TableHeader: UITableViewHeaderFooterView { @IBOutlet weak var

UIImagePickerController stuck on compressing video on iOS10 simulator after choosing a video

血红的双手。 提交于 2019-12-03 11:56:21
I had this app that always worked normally on iOS9, now I've migrated the swift code to 3.0 and added the required plist rows to get access to photos library. While trying to pick a video (preloaded by dragging) from the camera roll using UIImagePickerController on simulator it always get stuck on "Compressing Video" and doesn't callback the delegate methods. @IBAction func videoFromLibrary(_ sender: UIBarButtonItem) { picker.allowsEditing = false picker.sourceType = .photoLibrary picker.mediaTypes = UIImagePickerController.availableMediaTypes(for: .photoLibrary)! picker.modalPresentationStyle

AVCaptureStillImageOutput vs AVCapturePhotoOutput in Swift 3

╄→尐↘猪︶ㄣ 提交于 2019-12-03 11:40:02
问题 I am trying to simply put a Camera View in my View Controller. I imported AVFoundation at the top, as well as UIImagePickerControllerDelegate and UINavigationControllerDelegate classes. However, whenever I try to use AVCaptureStillImageOutput , Xcode tells me that it was deprecated in iOS10 and I should use AVCapturePhotoOutput . That is completely fine, however, as soon as I want to call stillImageOutput.outputSettings , .outputSettings itself is not available. Thus, I have to use

FetchedResultsController Swift 3 API Misuse: Attempt to serialize store access on non-owning coordinator

梦想与她 提交于 2019-12-03 10:54:22
I'm attempting to use a fetchedResultsController to handle the results in my UITable. It works initially when the program starts up. Then when I switch back to the inventory tab where my table is (for the viewToAppear again), this is when it crashes. I'm getting a runtime crash error in my viewWillAppear() method of the window which has the table. In particular it crashes on the Inventory+CoredataProperties.swift file on this line let characters = name!.characters.map { String($0) } , but I suspect the error is somewhere else as this works initially so why not now on the 2nd reload? Here is

UIWebDocumentView _updateSubviewCaches crash in iOS10

*爱你&永不变心* 提交于 2019-12-03 10:14:33
问题 I am getting the following crash in HockeyApp more seriously in iOS10. Please find the crash log as given below. Thread 4 Crashed: 0 libobjc.A.dylib 0x0000000187242f30 objc_msgSend + 16 1 UIKit 0x000000018e86e914 -[UIWebDocumentView _updateSubviewCaches] + 36 2 UIKit 0x000000018e69093c -[UIWebDocumentView subviews] + 88 3 UIKit 0x000000018e941bd4 -[UIView(CALayerDelegate) _wantsReapplicationOfAutoLayoutWithLayoutDirtyOnEntry:] + 68 4 UIKit 0x000000018e63d770 -[UIView(CALayerDelegate)

SVG transform rotate by 90, 180 or 270 degrees not working on circle in Safari iOS 10

ε祈祈猫儿з 提交于 2019-12-03 10:09:30
I want to create a donut chart using an SVG circle element by setting stroke-dasharray and varying stroke-dashoffset . The SVG element needs to be rotated by 270 (or -90) degrees in order for the chart "bar" to start at the top. Here is the code: http://jsfiddle.net/q3wb6gkq/ The rotation angle is specified using the first number in transform="rotate(270, 80, 80)" . The problem is: when viewed in Safari on iOS 10 this rotation is not applied. In fact, setting 90, 180 or 270 degree rotation has no effect. The same angles but negative (for example -90) are also not applied. Here is a screenshot

CNUI ERROR Contact view delayed appearance timed out

岁酱吖の 提交于 2019-12-03 10:04:36
I am trying to show the Contacts add new contact view with the ContactsUI framework in iOS 10. The code that I am using to present CNContactViewController the is the following: let contactViewController = CNContactViewController(forNewContact: contact) contactViewController.contactStore = CNContactStore() contactViewController.delegate = self self.present(contactViewController, animated: false) {} But every time I execute the code the app gets frozen and I get three + times the following error log: [CNUI ERROR] Contact view delayed appearance timed out Any explanation is welcome, I find a

iOS 10 : Add sticker extension to an existing Application

感情迁移 提交于 2019-12-03 09:45:54
I want to make an iOS sticker pack for my application. I've been looking around and I managed to do a sticker app via Xcode. My problem is that I don't want a stand-alone sticker app. Users will never go to the store to download it separately. I want the sticker to be include in my classic app, like an "extra" : "You've downloaded the app, thanks you, here are stickers you can use in message". I've tried to do "Add Target" like explained here But when I run my app, I can see my view controller but not my sticker in my messaging app. Can someone help me please ? If you dont want to use it as a