How to do “actionSheet showFromRect” in iOS 8?

前端 未结 4 481
旧巷少年郎
旧巷少年郎 2021-01-13 16:03

In iOS 7, I show actionSheet by \"showFromRect\":

[actionSheet showFromRect:rect inView:view animated:YES];

But in iOS 8, this doesn\'t wor

4条回答
  •  暖寄归人
    2021-01-13 16:39

    according to this https://developer.apple.com/library/ios/documentation/Uikit/reference/UIActionSheet_Class/index.html thread UIActionSheet is deprecated, you should use UIAlertController instead of UIActionSheet.

    Thanks.

提交回复
热议问题