Iphone Orientation Change
- by SG
I am trying to implement orientation change functionality in my application.I have overrided -(void) didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation.
In this method i change the frame size of the tableview(including the position of the cell items) which is present in the view.
The tableview Details:
Added to the view as [self.view addSubView:tableView] in the viewDidLoad method of the view controller;
Cell item (row) has a textfield and a segmented control.
There are 10 cells in the table view and in landscape mode only 2 cells are visible and in potrait mode 5 cells are visible.
I have implemented scroller.
Issue:
Certain times on changing the orientation to potrait mode certain segmented controls in the cell are not rendered (Not shown at all).
This happens when i am viewing the last couple of cells in the landscape mode and i change the orientation to potrait mode.