我们如何在UIButton上添加UIPopOverController?

RAM*_*ANA 2 iphone uibutton uipopovercontroller

我有一个问题,因为上半个小时.UIButton 我正在使用,我想UIPopovercontroller在它上面显示.但它崩溃了touchUpinside action.我知道如果我使用我们可以轻松完成UIBarButton但我有一些UI specification这就是为什么我不能使用UIBarButtonUIToolbar.

所以,如果有人有任何想法UIPopovercontroller,UIButton那么请帮助我.帮助将是appriciated.

Den*_*nis 5

[popoverController presentPopoverFromRect:button.frame inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
Run Code Online (Sandbox Code Playgroud)