ios - how to give an action for a button which should have different action for landscape and portrait? -


in project , have uibutton on view. when click on button smallview should load in main view landscape frame different , portrait frame different. suggestions helpful requirement

you can orientation of device @ time calling:

[[uidevice currentdevice] orientation]; 

in code can check , setup desired frame.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -