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
Post a Comment