ios11

iOS 11 SceneKit hitTest:options: fails

无人久伴 提交于 2019-12-22 13:46:49
问题 I'm facing a difficult situation using hitTest:options: in SceneKit on iOS 11. In a maping application I have a terrain node. Using hitTest:options: I was able for long to spot a point on the terrain from a touch on the screen. It still work as expected with released binary on iOS 11, and also on Xcode 9 compiled binary for iOS 10 simulator. But iOS 11 binary on iOS 11 SDK gives totaly eratic results. Return array from hitTest:options: may contain no result or too many. Moreover, most of the

Wrong placement of search text field inside search bar on iOS 11

梦想与她 提交于 2019-12-22 10:44:39
问题 I am using UISearchController as part of navigation bar using the new APIs introduced in iOS 11. I am using it in the following manner in my ViewController's viewDidLoad - (void)viewDidLoad { [super viewDidLoad]; [_table setDataSource:self]; [_table setDelegate:self]; searchController = [[UISearchController alloc] initWithSearchResultsController:nil]; [self.navigationItem setSearchController:searchController]; [self.navigationItem setHidesSearchBarWhenScrolling:NO]; [searchController

App crash on CameraRoll.saveToCameraRoll in iOS in react-native

混江龙づ霸主 提交于 2019-12-22 09:42:19
问题 I am trying to save a screenshot to Camera Roll in my react-native app in iOS but as soon as the CameraRoll.saveToCameraRoll is called the app crashes. It was working till iOS 10 and react-native 0.47. And it is working perfectly fine in Android. I already have the permissions required for iOS 10+ in Info.plist. This is my code for saving the image to Camera Roll. CameraRoll.saveToCameraRoll(mUri, 'photo') .then(()=>console.log('saved to CameraRoll')) .catch(()=>console.log('error in saving')

HTML 5 AudioElement won't play mp3 Livestreams in safari on IOS 11 devices

﹥>﹥吖頭↗ 提交于 2019-12-22 08:19:10
问题 I'm a web developer at a radio broadcaster. Since the release of IOS 11, we received several user complaints that our audio live streams can't be played on IOS 11 devices anymore. To embed the streams in our websites we use the HTML5 AudioElement. When debugging the javascript on an iPhone whit IOS 11 we recognized that calling the audio elements play() method resulted in a MediaError of ErrorCode 4 (MEDIA_ERR_SRC_NOT_SUPPORTED). All other devices (Android, Windows and IOS 10 and below) play

Request NSPhotoLibraryAddUsageDescription permission

天大地大妈咪最大 提交于 2019-12-22 08:15:28
问题 I'm trying to save image to Photos app on iOS 10 and 11 versions. Therefore on iOS 11 I need to request NSPhotoLibraryAddUsageDescription permission, on iOS 10 NSPhotoLibraryUsageDescription . As Apple documentation claims, [PHPhotoLibrary requestAuthorization:] obtains permission only for NSPhotoLibraryUsageDescription key. If you have both keys in Info.plist file and select "Add photos only" to Photos permissions in your app, [PHPhotoLibrary authorizationStatus] returns

SKPaymentTransactionObserver `In-app purchases can’t be promoted on the App Store` on iTunes connect but delegate implemented and tested

感情迁移 提交于 2019-12-22 07:05:04
问题 We keep getting this warning message in Itunes connect after implementation and test of the delegate method: These in-app purchases can’t be promoted on the App Store because your latest app binary doesn’t include the SKPaymentTransactionObserver method. We implemented the delegate method for the new App Store purchase from iOS 11 in a dedicated object that manages our payments and other SKPaymentTRansactionObserver. func paymentQueue(_ queue: SKPaymentQueue, shouldAddStorePayment payment:

iOS 11 issues with Refresh Controller and navigationBar that has prefersLargeTitles set to true

狂风中的少年 提交于 2019-12-22 06:51:08
问题 I am using a navigation controller and within that navigation controller, I have a VC with a tableview that is hugging the top, bottom, left and right sides of the superView. When I have self.navigationController?.navigationBar.prefersLargeTitles set to false, everything works fine. But when I set it to true, I have to drag really really far down to get my refresh controller to trigger the refresh. This is fixed by simply tapping one cell which then goes into the detail view and then pressing

WKWebView target=“_blank” link open new tab in safari ios11, swift 4

∥☆過路亽.° 提交于 2019-12-22 05:15:31
问题 I understand this question has been asked a lot and I think I have viewed every single post about this and I still cannot get this to work. I'm new to swift and I think that is inhibiting me from being able to adapt code snippets from other answers. So here's my question: I am using a WKWebView to view a website in my app. When I click on a link that opens a new tab nothing happens. I want that new tab to open in safari or at least in a new wkwebview. I've tried implementing this answer from:

iOS11 AppIcon can't change

自闭症网瘾萝莉.ら 提交于 2019-12-22 05:13:48
问题 Xcode 9 beta 6 iOS 11 beta 10 I want package application with custom App icon , so I try to replace AppIcon.png files at DerivedData (/Users/XXX/Library/Developer/Xcode/DerivedData/project/Build/Products/Debug-iphoneos/xxx.app) It worked at iOS 10, but doesn't work at iOS 11 Can anybody solve it? Thanks for advance 回答1: I have found a solution. I change app icons in the source .xcasset folder, not in Derived Data (using ImageMagick). So, here is my script: #!/bin/bash IFS=$'\n' BASE_ICONS_DIR

AVPlayerViewController black screen when swiping on iOS 11

你。 提交于 2019-12-22 05:05:32
问题 I'm using AVPlayerViewController to play a video file (H.264, AAC, MP4-Container) on an iPad-App. Everything is working in iOS 10. And also in iOS 11 it plays the video correctly. But in iOS 11, when I start swiping in any direction, it immediately blacks out the video and also mutes audio. It also shows a loading indicator next to the timeline on the bottom. Also it ignores the allowsPictureInPicturePlayback property, so it doesn't show the PIP-Button on iOS 11. This is the code I use: