Iphone Orientation Change
Posted
by SG
on Stack Overflow
See other posts from Stack Overflow
or by SG
Published on 2010-02-17T11:31:19Z
Indexed on
2010/04/11
13:03 UTC
Read the original article
Hit count: 180
iphone
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.
© Stack Overflow or respective owner