Quote:
Originally Posted by Jume
|
Jume,
thanks for the fast response. I appreciate the examples and they are helping me to understand. We were able to start the "Window" and "tableview" in landscape but the NavigationBar is not transforming. Here is a snapshot of our code:
Code:
- (void)loadView {
// create and configure the table view
myTableView = [[UITableView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame] style:UITableViewStylePlain];
myTableView.delegate = self;
myTableView.dataSource = self;
myTableView.autoresizesSubviews = YES;
myTableView.scrollEnabled = YES;
// BWC: allows the TableView to resize in landscape or portrait orientation
myTableView.autoresizingMask = UIViewAutoresizingFlexibleHeight|UIViewAutoresizingFlexibleWidth;
// this will transform your coordinates so that you can draw kind of normally
// Set up to rotate 90 degrees (PI/2 radians)
CGAffineTransform rotate = CGAffineTransformMakeRotation(1.57079633);
[myTableView setTransform:rotate];
self.view = myTableView;
}
Please let me know if you think there is something we are not doing correctly. One thing that may be the problem is the fact we are setting up a UIView.
Thanks,
Brad