objective c - Setting View controls according to the Orientation -


i created view based application. ui control's created thorough code.but view changing according orientation.can have properties avoid problem

enable following function on filenameviewcontrol.m of project.

  • -(bool)shouldautorotatetointerfaceorientation:(uiinterfaceorientation)interfaceorientation {
    // return yes supported orientations return ((interfaceorientation == uiinterfaceorientationportrait) );
    }

change uiinterfaceorientationportrait according orientation

if have deleted commented tags, add this.


Comments

Popular posts from this blog

c++ - error: use of deleted function -

delphi - ESC/P programming! -

c# - how to write client side events functions for the combobox items -