Hi all,
In my IPad project, I had align and set the position of image view at the center of a portrait view. It work nicely when the orientation of IPad is in portrait view but when I rotate it to landscape orientation, the image view not at the certer but is at the left side.
So, is it a way to make subviews (image view) position automatically based on the orientation of view? Or I need set the position of image view programmatically by checking the current orientation of device? Or I need set the autoresizing property of subviews under Size Inspector in interface builder?
Any suggestions and comments are welcome. Thanks a lot.
In my IPad project, I had align and set the position of image view at the center of a portrait view. It work nicely when the orientation of IPad is in portrait view but when I rotate it to landscape orientation, the image view not at the certer but is at the left side.
So, is it a way to make subviews (image view) position automatically based on the orientation of view? Or I need set the position of image view programmatically by checking the current orientation of device? Or I need set the autoresizing property of subviews under Size Inspector in interface builder?
Any suggestions and comments are welcome. Thanks a lot.