p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning iPad Application Development (http://p2p.wrox.com/forumdisplay.php?f=575)
-   -   Chapter 6: setOrientation (http://p2p.wrox.com/showthread.php?t=80829)

GeezerRoy September 7th, 2010 09:18 AM

Chapter 6: setOrientation
 
I cannot get setOrientation (page 179) to work. An alert indicates that UIDevice may not respond to it and it does not "auto-complete" / display when entered.

GeezerRoy September 7th, 2010 09:26 AM

Problem Resolved
 
I finally realized, though the book fails to mention it, that after adding the code on page 179:

-(IBAction) btnClicked: (id) sender {
[[UIDevice currentDevice] setOrientation:UIInterfaceOrientationLandscapeLeft];
}

one DOES NEED to connect the button to the "File's Owner" item!


All times are GMT -4. The time now is 08:36 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.