Nativescript方向/自动旋转问题

时间:2019-03-14 16:56:22

标签: ios angular nativescript

使用NativeScript运行IOS构建时,我收到一些警告。 主要问题是方向变化没有得到正确处理。旋转手机时,我可以看到方向更改事件正在注册,并且可以正确识别新的方向,但是视图无法调整。

我的猜测是,此行为与下面生成的警告有关。

我已经经历了最新的更新过程,应该对所有内容都保持最新。我在任何地方都找不到与这些警告和NativeScript相关的任何问题。有谁知道如何解决这个问题。

`[19-03-14 10:27:30.059](CLI)生成了3条警告。

[19-03-14 10:27:30.833](CLI)**** / platforms / ios / Pods / TOCropViewController / Objective-C / TOCropViewController / TOCropViewController.m:458:1:警告:实施不建议使用的方法[-Wdeprecated-implementations]

[19-03-14 10:27:30.833](CLI)-(void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation持续时间:(NSTimeInterval)duration

[19-03-14 10:27:30.833](CLI)^ [19-03-14 10:27:30.833](CLI)在从/ Users / benjaminb / Desktop / projects / HelloWorld / platforms / ios / Pods / Target支持文件/TOCropViewController/TOCropViewController-prefix.pch导入的模块'UIKit'中:2: [19-03-14 10:27:30.833](CLI)

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:328:1:注意:方法'willRotateToInterfaceOrientation:duration:'在这里声明

[19-03-14 10:27:30.833](CLI)-(void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation持续时间:(NSTimeInterval)duration NS_DEPRECATED_IOS(2_0,8_0,“ Implement viewWillTransitionToSize:with_TransitionCoordinEDOS):” ; [19-03-14 10:27:30.833](CLI)^ [19-03-14 10:27:30.833](CLI)*** / platforms / ios / Pods / TOCropViewController / Objective-C / TOCropViewController / TOCropViewController.m:490:1:警告:实施不推荐使用的方法[-Wdeprecated-实现]

[19-03-14 10:27:30.833](CLI)-(void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation持续时间:(NSTimeInterval)duration

[19-03-14 10:27:30.833](CLI)^ [19-03-14 10:27:30.833](CLI)在从**** / platforms / ios / Pods / Target Support Files / TOCropViewController / TOCropViewController-prefix.pch:2导入的模块'UIKit'中: [19-03-14 10:27:30.833](CLI)

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h:331:1:注意:方法'willAnimateRotationToInterfaceOrientation:duration:'在这里声明

[19-03-14 10:27:30.833](CLI)-(void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation持续时间:(NSTimeInterval)持续时间NS_DEPRECATED_IOS(3_0,8_0,“实现viewWillTransitionToSize:with_itionition”) ;

[19-03-14 10:27:30.833](CLI)^ [19-03-14 10:27:30.833](CLI)**** / platforms / ios / Pods / TOCropViewController / Objective-C / TOCropViewController / TOCropViewController.m:515:1:警告:实现不推荐使用的方法[-Wdeprecated -实现]

[19-03-14 10:27:30.833](CLI)-(void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation [19-03-14 10:27:30.833](CLI)^ [19-03-14 10:27:30.833](CLI)在从*** / platforms / ios / Pods / Target Support Files / TOCropViewController / TOCropViewController-prefix.pch:2:

导入的模块'UIKit'中

[19-03-14 10:27:30.833](CLI)/应用程序/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk/System/Library/Frameworks /UIKit.framework/Headers/UIViewController.h:329:1:注意:方法'didRotateFromInterfaceOrientation:'在这里声明

[19-03-14 10:27:30.833](CLI)-(void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation NS_DEPRECATED_IOS(2_0,8_0)__TVOS_PROHIBITED; [19-03-14 10:27:30.833](CLI)^`

0 个答案:

没有答案