Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Mobile-Applications landscape orientation iPad
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Java Coder
landscape orientation iPad
1 Answer(s)      4 years ago
Posted in : MobileApplications


In my iPad application, i want to change the orientation as landscape only.. how could i be done? Currently i'm using

// Ensure that the view controller supports rotation and that the split view can therefore show in both portrait and landscape.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    return YES;
}

Please help. Thanks in advance!


Advertisement
View Answers

December 16, 2010 at 11:44 AM


To fix the orientation to landscape only ... either comment or delete the "return YES" and instead of it write ..

return UIInterfaceOrientationIsLandscape(interfaceOrientation);

See the code given below..

-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    //return YES;
    return UIInterfaceOrientationIsLandscape(interfaceOrientation);

}


Related Tutorials/Questions & Answers:
landscape orientation iPad
landscape orientation iPad   In my iPad application, i want to change the orientation as landscape only.. how could i be done? Currently i'm using... therefore show in both portrait and landscape. - (BOOL
Orientation iPhone SDK
please keep in mind that landscape orientation is not possible in the case... application that is both portrait and landscape orientation enabled... alike the given images. You can also set the landscape orientation
Advertisements
iphone handle orientation change
iphone handle orientation change   How can i handle the orientation change in iPhone / iPad application? Please suggest. Thank in Advance
UIView landscape only
UIView landscape only  HI, How to display your view in landscape orientation only? Thanks   Hi, You use the following code in your view...:(UIInterfaceOrientation)interfaceOrientation { // Overriden to allow any orientation
Change orientation of UIViewController
Change orientation of UIViewController  Is it possible to change the UIViewController orientation dynamically
how printing landscape?
how printing landscape?  I have code which print some data from data... "Print Dialog", but it does not work if chose "Landscape". Is any way to print LANDSCAPE
ipad default image names
ipad default image names  i have a problem while launching application in iPad. The Default image that i have set is not displaying in landscape mode correctly. please suggest. Thanks.   ipad Default image names
pdf landscape
pdf landscape       In this free tutorial we are going to tell you about landscape portrait in iText... you will know more about the landscape portrait.  To make a program over
iPhone landscape mode
iPhone landscape mode In this series of iPhone application development tutorial, you'll learn launching your iPhone app in landscape mode. Believe me it's very simple to change your iphone app in landscape mode. Just follow
iPad application designer
iPad application designer Are you looking for the experienced graphics designer for designing your iPad application? Look no further, we provide professional iPad application designing services. We have a team of iPad application
scrolling div ipad
scrolling div ipad   Please suggest me how to scroll the div in iPad UIWebView? Thanks
universal binary for ipad iphone
universal binary for ipad iphone  How can i create a universal binary for iPad and iPhone
iPad App to store data
iPad App to store data  Hi, How to add data support iPad application? Thanks
iPad development outsourcing
iPad development outsourcing Save lot for cost cost by outsourcing iPad development projects to our iPad/iPhone development team in India. Outsource your iPad development projects to our offshore iPhone/iPad development team and save
iPhone iPad Default.png
iPhone iPad Default.png  How can i set the default image for both iPhone and iPad in my global application XCode?? Thanks
iPhone/iPad Project xCode
iPhone/iPad Project xCode  hii Can I compile the same iPhone source code for iPad?   Yes you can do so. Yes. This is called a Universal binary. so you can compile the same iPhone source code for iPad
Rotating UIViewController
to rotate your UIView into both portrait or landscape orientation. Steps for Rotating UIViewController in both portrait and landscape orientation. -> Create... it to work in portrait and landscape orientation. So just comment the line
ipad external display tutorial
ipad external display tutorial  Hi, I am looking for a iPad external display tutorial. I have a VGA adapter but my application need to support it to show anything on external device. Please suggest me. Thanks
iPhone and iPad universal app
iPhone and iPad universal app  I am writing a universal application in iPhone and iPad that is not working in iPhone simulator. Though i have tested it in the iPad successfully. On running the application in the device it returns
ipad screen resolution pixels
ipad screen resolution pixels  Hi! Can you tell the exact size of the iPad in pixels ..including height & width. Thanks Very Much!   Finally find it on the apple website... The iPad display has a screen resolution
Marketing orientation: way for marketing
Marketing orientation is the marketing approach in which need and demand... orientation emphasizes to the want and need of customer so that company can win the trust of customer for the future prospect. Marketing orientation practices
iPad Tutorials
iPad is amazing device from Apple. The iPad has been said to retain all the benefits of technology that you find in Apple?s iMac. The operating system is OS... to be seen whether the same will be true for the iPad. The downside is that you
iPad Application Development Services
iPad Application Development Services iPad Application Development services from Rose India Technologies Pvt. Ltd. iPad Application Development is the process of designing, coding, testing and releasing the iPad Application
iPad Application Development in India
iPad Application Development in India We provide iPad Application Development service in India. Get your iPad and iPhone application developed in India at our software development center. India is premiere place for outsourcing iPad
iPhone & iPad application development
iPhone & iPad application development We are leading company for iPhone & iPad application development and support. Our team is expert in iPhone and iPad application development to support businesses of our clients. We develop
Customer orientation in marketing management
on customers demand and their taste. It is known as the customer orientation... are utilizing the marketing concept, which based on customer orientation. Although success... depends upon the customer orientation move. Such companies focus on the need
Music Can Be Heard on the iPad
Music Can Be Heard on the iPad The Apple iPad is a device that, like... that are used to make the iPad more versatile and entertaining. It is great to see all of the features that work with music on the iPad. First there is the ability
iPad Application Development India
iPad Application Development India Apple Inc. on April 03, 2010 launched... that run on its another awesome devices iPhone and iPod Touch. With the new iPad... available only on small screen of iPhone and iPod Touch. Apple’s iPad has
iPad Application Development in India
iPad Application Development in India We have technical team and required infrastructure to develop high quality iPad and iPhone applications. Our technical team provides iPad Application Development and testing services in India. Use
app crashed in ipad 2 running iOS 5.0.1
app crashed in ipad 2 running iOS 5.0.1  i developed a universal application for both iPhone and iPad the application works fine when i test on my iPad. But apple has rejected it twice saying that.. "We found your app crashed
iPad Apps Development
iPad Apps Development Apple Inc that is know for its unique quality... wonder – iPad – world's first table computer that works similar... the two models of iPad: one with 802.11n Wi-Fi and one with 802.11n Wi-Fi
 

 

 

DMCA.com