Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 09-04-2008, 09:19 AM   #5 (permalink)
cope784
New Member
 
Join Date: Jun 2008
Posts: 22
Default

Quote:
Originally Posted by Jume View Post
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

Last edited by cope784; 09-30-2008 at 12:08 PM.
cope784 is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,824
Threads: 89,206
Posts: 380,635
Top Poster: BrianSlick (7,129)
Welcome to our newest member, gascertificate
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:34 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.