ios10

Deleting all data in a Core Data entity in Swift 3

狂风中的少年 提交于 2019-12-03 04:12:03
问题 Is there a way to do a batch delete of all data stored in all of the entities in core data? I read somewhere that in iOS 9 or 10 that apple introduced a way to do batch deletes, but I can't seem to find any good information on it. Ultimately, I just need a function that goes through an entity, and deletes all of the data in it. Seems like it should be simple enough, but documentation/tutorials for it have proven exceedingly difficult to find. Any thoughts? Edit I added the following code into

UIAlertController background color iOS10

↘锁芯ラ 提交于 2019-12-03 03:47:20
Code that I wrote for iOS9, worked really well: UIAlertController* alert = [UIAlertController alertControllerWithTitle:@"Select source" message:nil preferredStyle:UIAlertControllerStyleActionSheet]; alert.view.backgroundColor = DARK_BLUE; alert.view.tintColor = NEON_GREEN; UIView *subview = alert.view.subviews.firstObject; UIView *alertContentView = subview.subviews.firstObject; alertContentView.backgroundColor = DARK_BLUE; alertContentView.layer.cornerRadius = 10; My point of view is that UIAlertController is inheriting from UIViewController , and UIViewController have property UIView that

AVCaptureStillImageOutput vs AVCapturePhotoOutput in Swift 3

浪尽此生 提交于 2019-12-03 02:08:40
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 AVAVCaptureStillImageOutput for it to work but I have multiple warnings because this function was deprecated in

Runtime issues with iOS 10/XCode 8 [duplicate]

拜拜、爱过 提交于 2019-12-03 01:03:35
This question already has answers here : Hide strange unwanted Xcode logs (12 answers) Since I built and started running app on iOS 10 simulator, I started getting logs such as : objc[6880]: Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x120275910) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks

iTunes software service authentication error domain error 434

冷暖自知 提交于 2019-12-03 00:56:44
I am uploading iPhone application using latest xCode 8. I have good internet connection and all the relevant settings set up at iTunes connect . My distribution profiles are also set up correctly. I am facing below error:- iTunes software service authentication error domain error 434 So this has what worked for me: Preface: 4 days of debugging, recreated certificates numerous times, nothing worked, every time i try to validate/upload via Xcode it says same error "iTunes software service authentication error domain error 434" Solution without XCode: Create archive in Xcode Export IPA in

UIWebDocumentView _updateSubviewCaches crash in iOS10

情到浓时终转凉″ 提交于 2019-12-03 00:43:42
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) layoutSublayersOfLayer:] + 1248 5 QuartzCore 0x000000018bb0640c -[CALayer layoutSublayers] + 144 6 QuartzCore

iOS 10 MapKit previous layer zoom issue

試著忘記壹切 提交于 2019-12-02 23:48:52
I am working in a map application which renders a polyline over a map. I am having an issue when zooming, it keeps the previous polyline on the tile. I have tried to force redrawing: [self.mapView reloadInputViews]; [self.mapView.layer setNeedsDisplay]; [self.mapView setNeedsDisplay]; Also I tried to slow the zoom speed, but the issue is still in there: [MKMapView animateWithDuration:2 delay:0 usingSpringWithDamping:0.6 initialSpringVelocity:10 options:UIViewAnimationOptionCurveEaseOut animations:^{ [self.mapView setVisibleMapRect:unionRectThatFits edgePadding:UIEdgeInsetsMake(20, 10, 20, 10)

UIPickerView selection indicator not visible in iOS10

点点圈 提交于 2019-12-02 23:00:48
I build my project in Xcode 8. UIPickerView separator lines are not visible in iOS 10 simulator and the devices, but works fine on iOS 9.3 devices and simulator. I tried to adjust the UIPickerView back ground color, auto layouts and everything possible in the XIB, but nothing works. Anyone have an idea on this? This is a custom view which contains a UIPickerView -(void)layoutSubviews{ isShown = NO; [super layoutSubviews]; //self.selectedDic = nil; self.doneBtn.tintColor = COLOR_DB3535; self.pickerView.backgroundColor = COLOR_DEDEDE; self.pickerView.showsSelectionIndicator = YES; [self.doneBtn

Core Data Codegen fail in Xcode 8

女生的网名这么多〃 提交于 2019-12-02 22:43:27
I have an iOS app containing a Core Data model with 6 entities. The entity Name is set up as follows: Class Name: Name Module: Current Product Module Codeine: Class Definition (all 5 other entities are set up similarly). Problem 1 (fixed itself but leaving for posterity) Code IS generated in the derived data folder… not as ~class definitions as expected, but as extensions instead (named like Name+CoreDataProperties.swift . It doesn't seem to matter whether the Codegen is set to Class Definition or Category/Extension - I still get the same result. OK, hold that thought - all of a sudden both