Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ViewController がポップオーバーまたはフルスクリーンで表示されているかどうかを確認する方法はありますか?
入手して比較してみた
self.view.frame.size.width
しかし、時々それがうまくいかないことがあります。より良い解決策があることを願っています ありがとう!
以下のデリゲート (ポップオーバー用) をビューに実装し、これがポップオーバーまたはビューに対して呼び出されているかどうかを確認できます。回避策になるはずです。
- (CGSize)contentSizeForViewInPopoverView ;