Why the uiview changes orientation automatically when change the device orientation and not completely scrolling of uitableview
(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations.
if (self.medcategoryPopOver!=nil) {
[self.medcategoryPopOver dismissPopoverAnimated:YES];
}
if (interfaceOrientation == UIInterfaceOrientationPortrait ||interfaceOrientation==UIInterfaceOrientationPortraitUpsideDown) {
mediconDisplay.hidden=NO;
return YES;
} else if (interfaceOrientation==UIInterfaceOrientationLandscapeLeft) {
mediconDisplay.hidden=YES;
return TRUE;
} else {
mediconDisplay.hidden=YES;
return TRUE;
}
}
Just check the size of default view. If it will be bigger by default than the scrolling will not be enabled…