Use notifications in following methods and set the coordinates in receivedRotate method.
Use notifications in following methods and set the coordinates in receivedRotate method. -(void)viewWillAppear:(BOOL)animated { NSNotificationCenter defaultCenter addObserver:self selector:@selector(receivedRotate:) name:UIDeviceOrientationDidChangeNotification object:nil; UIDevice currentDevice beginGeneratingDeviceOrientationNotifications; } -(void)viewWillDisappear:(BOOL)animated { NSNotificationCenter defaultCenter removeObserver:self name:UIDeviceOrientationDidChangeNotification object:nil; } For example in receivedRotate you can set your tableview's coordinates as : if (orientation == UIDeviceOrientationLandscapeLeft||orientation==UIDeviceOrientationLandscapeRight) { tblView reloadData; tableX=70.0; } else { tblView reloadData; tableX=48.0; } Also call recieveRotate in viewDidLoad which is very important.
Thanks nitish for the detailed answer. It is similar to what iAmitwagh mentined above – amavi Jun 8 at 11:31 1 Yeah. But I posted it before :) – Nitish Jun 8 at 11:33.
Check this method , may be help u... - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { // Return YES for supported orientations. Return ( interfaceOrientation == UIInterfaceOrientationPortrait || interfaceOrientation == UIInterfaceOrientationLandscapeLeft || interfaceOrientation == UIInterfaceOrientationLandscapeRight || interfaceOrientation == UIInterfaceOrientationPortraitUpsideDown );} or try to set autoresizingMask for controllers hope it will help u.
I am returning YES for supporting all the rotations. Can you put some light on autoresizingMask? How and where to set it?
– amavi Jun 8 at 9:56 its property of your UIComponent . You can set it to UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight. It automatically resizes width and height of UIcomponent according to orientation.
– Abhijeet Barge Jun 8 at 9:58.
You need to check orientation at runtime in method - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { } & change elements of your view according to orientation.
Thanks Amit. It worked along with implementing the -(void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrient? Ation duration:(NSTimeInterval)duration method for handling the rotations.
– amavi Jun 8 at 11:30.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.