类型“ UIAccessibilityNotifications”(也称为“ UInt32”)的值没有成员“ screenChanged”

时间:2019-07-24 00:05:26

标签: ios swift

在更新Swift之后获取下面代码的错误。我尝试了几个没有运气的变体?

UIAccessibility.post(通知:UIAccessibilityLayoutChangedNotification.screenChanged,                                     参数:bottomContainer);   }

尝试:UIAccessibility.post(通知:UIAccessibilityLayoutChangedNotification,screenChanged,                                     参数:bottomContainer);   } 和 UIAccessibility.post(通知:UIAccessibilityLayoutChangedNotificationscreenChanged,                                     参数:bottomContainer);   }

总是回到此错误:类型'UIAccessibilityNotifications'(也称为'UInt32')的值没有成员'screenChanged'

1 个答案:

答案 0 :(得分:0)

尝试一下!

 UIAccessibilityPostNotification(UIAccessibilityLayoutChangedNotification, bottomContainer)