tags:

views:

47

answers:

1

I have one view controller,in that i have 1 UIButton ,when i click on that button one view opens ,but when i move it to landscape mode at that time the view shows only half of width not full.what should i do?????

Thanks and welcome for answers

+1  A: 

You may need to set the autoresizing properties, i.e.

myView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;

You should probably call setNeedsDisplay on the view after changing the orientation.

mrueg
This code is not working for my viewsee ,when i click on button one UIVIEWCONTROLLER is there.in that UIViewController one UIScrollview is there ,in that UISCROLLVIEW i added one image one UIButton ,one UITableview.what should i do?