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



Home Answers Viewqa Mobile-Applications landscape orientation iPad

Have Programming Question? Ask it here!
 
 
 


Java Coder
landscape orientation iPad
1 Answer(s)      3 years and 7 months 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
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
scrolling div ipad
scrolling div ipad   Please suggest me how to scroll the div in iPad UIWebView? 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
Go Wild With iPad Accessories
Go Wild With iPad Accessories Apple has done it again with the release of the iPad. Brand lovers the world over have been flocking to stores to get in on the action. If you have heard anything about the iPad surely you would have
How Does the Display Work for the iPad?
How Does the Display Work for the iPad? The iPad from Apple is a great... of the iPad comes from the display that it uses. Here is a great look at how the display of the iPad works. It uses all sorts of great features that make it more
Handling an iPad is Easy to Do
Handling an iPad is Easy to Do If there is one complaint that people can... to be easily controlled. This is where the iPad is different from other gadgets. The iPad from Apple is a device that is easy for anyone to carry around. It is also
The isTouch Screen on the iPad a Convenient Feature
The Touch Screen on the iPad is a Convenient Feature One of the best features that the Apple iPad has is its ability to work with a touch screen... of activities and functions on the iPad. This makes for a convenient tool that anyone
What Functions Can the iPad Handle?
What Functions Can the iPad Handle? A person who takes an Apple iPad out... with the iPad when it is being handled. It is incredibly easy to get... used web browser on Apple products, can be used on the iPad. This browser
What Apps Can the iPad Use?
What Apps Can the iPad Use? The applications, or apps, that are available on the iPad are ones that come in many different forms. They are all used to get the iPad to work with a variety of different functions. These are individual
The iPad is a Popular Tool for Business Needs
The iPad is a Popular Tool for Business Needs There are all sorts of fun things that people can do on the Apple iPad but there are also plenty of different business tools that can work on it. These business processes on the iPad
Setting a Background image for UITableView in iPhone & iPad application.
Setting a Background image for UITableView in iPhone & iPad application.  in my iPhone application i am using a simple UITableView to show the listing. But the it looks very simple.. (white color). Though i can change
iPad Apps Development India
iPad Apps Development India Roseindia Technologies Pvt. ltd., a Delhi based... and iPod, is now working on developing several genuine iPad apps... for iPad and offered its Software Development kit to developers to develop
your app crashed in ipad 2 running iOS 5.0.1
your app crashed in ipad 2 running iOS 5.0.1  I submit my universal application on Apple Store but it rejected the application with the given message... "We found your app crashed in ipad 2 running iOS 5.0.1, witch
Get An iPad And Change The Way You Work
Get An iPad And Change The Way You Work The iPad is the latest release... of responses. One of the most interesting comments is that the iPad is suited to a wide... to personalise your iPad so that it will tie into your life perfectly. While the rest
Just Got The New iPad? Getting Started?
Just Got The New iPad? – Getting Started Since its release in early 2010, Apple’s iPad has been receiving rave reviews from consumers all over.... These are some key features of the iPad: Dimensions: 9.56 x 7.47 x 0.5
Why Apple's iPad Is Better Than A Laptop
Why Apple’s iPad Is Better Than A Laptop Apple’s iPad burst... to the needs of every single user out there, but the iPad comes pretty close when compared to other devices in its category. Both laptops and the iPad
What You Get Out Of Apple's New iPad
What You Get Out Of Apple’s New iPad Apple’s iPad.... There was uncertainty whether the iPad could live up to the hype but when you see what... At first glance the iPad features a slim design with a smooth finish
Apple iPad? The Ins and Outs of a Revolutionary Piece of Technology
Apple iPad – The Ins and Outs of a Revolutionary Piece of Technology For months preceding the release of Apple’s iPad, there was much... to give a brief description of the iPad, many people will tell you
Just Got An iPad? - The Range Of Protective Cases You Can Choose From
Just Got An iPad? - The Range Of Protective Cases You Can Choose From Apple’s latest addition to the “i” series, the iPad, has been... while. Protective cases are specially designed to fit the iPad, helping to prevent
Protecting Your iPad Has Never Been Easier
Protecting Your iPad Has Never Been Easier Since its release early in 2010, the iPad has been flying off the shelves in stores all over the world... iPad safe and protected so that it can last you for a good time to come
 

 

 

DMCA.com