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

haskell - Using filter on an item in a list? -

c# - When does PreApplicationStartMethod actually get triggered to run? -

tomcat6 - Exception when stopping container for a with Spring + Quartz + Tomcat web application -