hello all i have a viewController in place of Custom Cell and viewcontrollers size is (0,0,768,160) in iPad and i am displaying that view controller in my table view i have a label, WebView and Image View in that Viewcontroller I am able to display the data perfectly in portrait mode but when I shift to Land Scape mode it doesent resize accordingly here is my code
for (int i = previousCount; i < currentCount; i++) {
CCellVCtr *nxtCCellVCtr=[[CCellVCtr alloc] initWithNibName:@"CCellVCtr-iPad" bundle:nil];
nxtCCellVCtr.view.frame = CGRectMake(0, 0, 1024, 160);
nxtCCellVCtr.dForCell=[arrTbl objectAtIndex:i];
[arrCCell addObject:nxtCCellVCtr];
[nxtCCellVCtr release];
}
here CCellVCtr is a viewController of size above mentioned
here is the code How am i displaying it in my Table View
UIView *v =(UIView*)[cell viewWithTag:kInnerView];
if(v)[v removeFromSuperview];
CCellVCtr *vView=[arSearch objectAtIndex:indexPath.row];
vView.view.tag=kInnerView;
[vView setIfImageNotLoaded];
[cell addSubview:vView.view];
and from ImageNotLoaded Method i am Loading the whole data but the point is when I shift the iPad orientation to Landscape mode it Behaves very Rubbishy and when i switch back to Po trait mode my table view seems to resize I am not sure how could i Handle this so please help me out about the orientation issue which i am facing
Thanks in Advance