ios11

Keep node's X and Z axes parallel to ground while rotating Y axis to face camera

拈花ヽ惹草 提交于 2019-12-24 06:43:29
问题 I'm trying to keep an SCNNode always one meter away from the front of the camera, and manipulate the node so that the X and Z axes are always parallel to the ground, while the node rotates around the Y-axis so that the node is always facing the camera. The code below achieves my goal for the most part, but when turning more than 90˚ clockwise or counterclockwise, the node starts turning. How can I fix that? override func viewDidLoad() { super.viewDidLoad() boxParent.position = (sceneView

FBSDKShareDialog not working on IOS11

血红的双手。 提交于 2019-12-24 05:57:43
问题 I am using FBSDKShareDialog to share an image on facebook, but on IOS11 it is not working. The Facebook share dialog is not opening. How can I share the post and have it work on IOS11 and previous versions as well. My previous working code: FBSDKSharePhoto *photo = [[FBSDKSharePhoto alloc] init]; photo.image = img; photo.userGenerated = YES; FBSDKSharePhotoContent *content = [[FBSDKSharePhotoContent alloc] init]; content.photos = @[photo]; [FBSDKShareDialog showFromViewController:self

FBSDKShareDialog not working on IOS11

让人想犯罪 __ 提交于 2019-12-24 05:57:09
问题 I am using FBSDKShareDialog to share an image on facebook, but on IOS11 it is not working. The Facebook share dialog is not opening. How can I share the post and have it work on IOS11 and previous versions as well. My previous working code: FBSDKSharePhoto *photo = [[FBSDKSharePhoto alloc] init]; photo.image = img; photo.userGenerated = YES; FBSDKSharePhotoContent *content = [[FBSDKSharePhotoContent alloc] init]; content.photos = @[photo]; [FBSDKShareDialog showFromViewController:self

Error preparing CoreML model: “<something>” is not supported for CoreML code generation

丶灬走出姿态 提交于 2019-12-24 03:42:51
问题 I am modifying the code from this tutorial and I'm getting this error: Error preparing CoreML model "Resnet50.mlmodel" for code generation: Target's predominant language "Swift Interface" is not supported for CoreML code generation. Please set COREML_CODEGEN_LANGUAGE to preferred language The project used to compile before with the "Places205-GoogLeNet" model. Anyone else experiencing the same? 回答1: In the project settings view for your app target, Change the setting COREML_CODEGEN_LANGUAGE

Main Thread Checker: UI API called on a background thread iOS 11 Xcode 9 GM Seed

大兔子大兔子 提交于 2019-12-24 03:26:11
问题 Can anyone please help me in debugging this issue, from the time i started working with Xcode 9 GM seed with iOS 11 GM seed, my code throwing me a warning in the console saying: 2017-09-18 16:22:52.872716+0530 **** *****[359:20158] [reports] Main Thread Checker: UI API called on a background thread: -[UIApplication applicationState] .PID: 359, TID: 20158, Thread name: Runtime Network Callback Thread, Queue name: com.apple.root.default-qos.overcommit, QoS: 21 Backtrace: also, i'm using ESRI

How to set audio details with an image on control center in Objective-C for iOS11?

[亡魂溺海] 提交于 2019-12-24 03:03:59
问题 I am trying to display audio details on control center as shown in the screenshot attached. With the below code it is working as expected in all the versions of iOS except in iOS11: if ([MPNowPlayingInfoCenter class]) { NSString *progress = (appDelegate.audioPlayer.progress == 0 || appDelegate.audioPlayer == nil ) ? @"0.0" : [NSString stringWithFormat:@"%f",appDelegate.audioPlayer.progress]; NSString *duration = (appDelegate.audioPlayer.progress == 0 || appDelegate.audioPlayer == nil ) ? @"0

iOS 11 new notification center removes all delivered notifications after user make any action with one of them

偶尔善良 提交于 2019-12-24 02:26:45
问题 I have an issue on iOS 11. All delivered notification automatically removing from notification tray after I select any action for one of them. This happens before my code start handling action. In iOS 10 everything is ok, all delivered notifications stay in delivered and disappear only notification where I proceed some action. My app schedule reminders with custom action, 2 buttons Activate and Stop. User can receive many of them in one day, but its very important to keep already delivered

leftBarButtonItem setTitleTextAttributes issue in iOS11

為{幸葍}努か 提交于 2019-12-24 00:46:21
问题 I have an app with a deployment target of iOS 9.3. I have just upgraded to Xcode 9.0.1, and have noticed this issue across all simulator devices and my own iPhone7 device running iOS11. The issue does not impact devices running < iOS11. I am initialising a left bar button item, with a custom font as follows (in viewDidLoad): UIBarButtonItem *safeModeButton = [[UIBarButtonItem alloc] initWithTitle:@"" style:UIBarButtonItemStylePlain target:self action:@selector(toggleSafeMode)];

AFNetworking iOS11 - HTTP load failed -999

折月煮酒 提交于 2019-12-23 09:49:59
问题 I have an app in production that has been running fine for a while. However, since iOS 11 - I am receiving this error: Task <51E07EF5-6F31-4E58-8818-7712CB3E49A6>.<20> HTTP load failed (error code: -999 [1:89]) Task <51E07EF5-6F31-4E58-8818-7712CB3E49A6>.<20> finished with error - code: -999 This happens on iOS 11 only. Also, it is not consistent. Out of five requests to the same URL, two will fail with this. On a Cellular connection, it happens less often, but its still there. I am using

iOS 11 Files App: How to include files from app bundle

这一生的挚爱 提交于 2019-12-23 09:17:26
问题 I watched the keynote this year at WWDC and am excited about all the new feature additions being brought to iOS 11. The high importance Apple has placed on games in the App Store and the biggest upgrades in the history of iPad is very exciting. But what was most thriling to me was that iOS 11 will bring for the first time some sibilance of a file system to iOS. They call it the Files app, naturally. It seems a big step forward in the new user's getting that same windows-like experience from