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

Python __call__ special method practical example -

arrays - jQuery - Retrieve values from HTML elements and return their sum -