ActionSheet not working iPad

后端 未结 8 2080
粉色の甜心
粉色の甜心 2020-12-02 16:25

I\'m using ActionSheet in my application. On my iPhone it works, but it doesn\'t on the iPad simulator.

this is my code:

@IBAction func dialog(send         


        
8条回答
  •  南方客
    南方客 (楼主)
    2020-12-02 16:49

    you need to add this for Ipad

    alertControler.popoverPresentationController?.sourceView = self.view

提交回复
热议问题