UIPopViewController not working

后端 未结 3 1478
感情败类
感情败类 2021-02-11 02:43

I have an xib file with a .h and .m linked. In the xib there is a UIView with a textView. What I would like to do with that view is open it as a UIPopViewController when you cli

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-11 02:49

    You can use UIPopoverController only in iPad application.

    if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
    {
        // for iPads
        // here you can use UIPopoverController   
    } else
    {
        // for iPhones
    }
    

提交回复
热议问题