ios11

iOS 11/Xcode 9: UITableViewCell white background flickers on delete

筅森魡賤 提交于 2019-12-03 07:00:23
On iOS 11 device on deleting a UITableViewCell unexpected white background appears for some reason however all background colors are set to blue in storyboard (works fine on iOS10). - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath { if (editingStyle == UITableViewCellEditingStyleDelete) { [self.bookmarks removeObjectAtIndex:indexPath.row]; [self.tableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationFade]; } } Tried all types of UITableViewRowAnimation , doesn't

How to transform vision framework coordinate system into ARKit?

家住魔仙堡 提交于 2019-12-03 06:53:15
问题 I am using ARKit (with SceneKit) to add the virtual object (e.g. ball). I am tracking real world object (e.g. foot) by using Vision framework and receiving its updated position in vision request completion handler method. let request = VNTrackObjectRequest(detectedObjectObservation: lastObservation, completionHandler: self.handleVisionRequestUpdate) I wants to replace the tracked real world object with virtual (for example replace foot with cube) but I am not sure how to replace the

UIViewPropertyAnimator different behaviour on iOS10 and iOS11 reversing an animation. Bug on `isReversed` and `fractionComplete` properties?

梦想与她 提交于 2019-12-03 06:15:20
THE PROBLEM Running the same code on iOS10 and iOS11 my UIViewPropertyAnimator has a different behaviour just after changing of his .isReversed property. Everything is ok on iOS10. The animation problem happens on iOS11 CONDITIONS It's true for any animations, not only for a particular one, and it is verifiable both by watching the animation and within the code. It happens both on simulators and real devices. DETAILS Once created a UIViewPropertyAnimator with his animation, during its running I just call .pauseAnimation() and change the .isReversed property to true . After that I resume the

UIDocument Creation on iOS 11: reader is not permitted to access the URL

☆樱花仙子☆ 提交于 2019-12-03 05:55:19
Since iOS 11 I have encountered the following error every time I am creating a new document using UIDocument API: [ERROR] Could not get attribute values for item /var/mobile/Containers/Data/Application/XXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXX/Documents/myDoc-XXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXX.myFile (n) . Error: Error Domain=NSFileProviderInternalErrorDomain Code=1 "The reader is not permitted to access the URL." UserInfo={NSLocalizedDescription=The reader is not permitted to access the URL.} Unlike similar questions ( 1 , 2 , 3 ) on SO on this, I am not using UIDocumentBrowserViewController . I am

bottom layout deprecated since ios 11.0

大兔子大兔子 提交于 2019-12-03 05:39:06
What can I do to fix Bottom layout is deprecated iOS 11, I am using Xcode 9 beta 2. Simply check the "Use safe area layout guides" button in the File Inspector of the IB. Function of @paper1111 works fine in Xcode Version 9.3.1, but for me not worked first time. After two days of World War with Interface Builder Solution: 1) check the "Use safe area layout guides" button in the File Inspector of the Interface Builder. 2) uncheck the "Use safe area layout guides" button in the File Inspector of the Interface Builder. 3) check again the "Use safe area layout guides" button in the File Inspector

Import multiple files in app via iOS11 files app

断了今生、忘了曾经 提交于 2019-12-03 05:31:27
I am trying to import multiple files from the new iOS11 files app into my app. However when I select two or more files (both of the same type, pdf) in the files app then hit the share button and select my app (copy to myApp) the - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options gets called only once and only the first file of my selection gets imported successfully. So I tried if this works in some other apps like Dropbox or GoogleDrive but it results in the same behavior. If I choose the iOS Mail app or the Gmail

Implement ink annotations on iOS 11 PDFKit document

浪子不回头ぞ 提交于 2019-12-03 05:23:44
问题 I want to allow the user to draw on an iOS 11 PDFKit document viewed in a PDFView. The drawing should ultimately be embedded inside the PDF. The latter I have solved by adding a PDFAnnotation of type "ink" to the PDFPage with a UIBezierPath corresponding to the user's drawing. However, how do I actually record the touches the user makes on top of the PDFView to create such an UIBezierPath? I have tried overriding touchesBegan on the PDFView and on the PDFPage, but it is never called. I have

iOS 11 UITableView bug

好久不见. 提交于 2019-12-03 05:11:59
问题 The bug can be reproduced using the repo here. I have a strange bug affecting my project in iOS 11 in my UITableView. The TableView in question is grouped, has expandable cells. Many weird effects happen that are not appearing on my iOS 10 branch: Titles superposes weird teleport issues when content size is above the UITableView container size when the collapsing of the cells occur Weird teleport to top of tableview at the beginning of the scrolling when content size exceeds the container's

Does LSApplicationWorkspace not work on iOS 11?

廉价感情. 提交于 2019-12-03 05:09:19
问题 I have an app in private which need to scan all applications and schemes and get it by using private API LSApplicationWorkspace defaultWorkspace with others functional method, such as privateURLSchemes allInstalledApplications . This app works good and I can get all I need from the private API before iOS 11, but in this version I only got some warning and an empty array. It seems Apple limits private API that developer can't use in private in iOS 11. So my question is what alternative ways

iOS 11 UINavigationBar bar button items alignment

自古美人都是妖i 提交于 2019-12-03 05:02:47
问题 I am upgrading my application to iOS 11 and I am seeing some problems with the navigation bar, part of my problems have already asked questions here, so I won't mention them in this question. The particular problem in question is that the navigation bar's bar button items are spaced differently. My main left and right bar button items are closer to the screen's horizontal center now and I can't move them near to the screen edges. In the past I have used a custom UIButton subclass and created