Sunday, January 13, 2013

How to get an iPhone 3 in landscape mode?

Q. How do you set an iPhone 3 so that when you turn the phone, the screen turns to landscape also?

A. It would appear it is NO longer necessary to force the size of the view on every view, and the specific bad problem of landscape "only working the first time" has been resolved. As you can see in the demo project, you can swap out, leave only the raw app window, and insert another landscape view with no problem.

As of April 2011, there is no reason to support anything below 4.0, so the question is now only a historic curiosity. It's incredible how much trouble that caused so many developers for so long!

It is EXTREMELY DIFFICULT to make this work fully properly -- there are at least three problems/bugs at play.

try this .. http://www.iphonedevsdk.com/forum/iphone-sdk-development/7366-interface-builder-landscape-design.html#post186977

Note in particular that where it says "and you need to use shouldAutorotateToInterfaceOrientation properly everywhere" it means everywhere, all your fullscreen views.

Hope it helps in this nightmare!

An important reminder of the ADDITIONAL well-known problem at hand here: if you are trying to swap between MORE THAN ONE view (all landscape), IT SIMPLY DOES NOT WORK. It is essential to remember this or you will waste days on the problem. It is literally NOT POSSIBLE. It is the biggest open, known, bug on the iOS platform. There is literally no way to make the hardware make the second view you load, be landscape. The annoying but simple workaround, and what you must do, is have a trivial master UIViewController that does nothing but sit there and let you swap between your views.

In other words, in iOS because of a major know bug:

[window addSubview:happyThing.view];
[window makeKeyAndVisible];

you can do that only once. Later, if you try to remove happyThing.view, and instead put in there newThing.view, IT DOES NOT WORK - AND THAT'S THAT. The machine will never rotate the view to landscape. There is no trick fix, even Apple cannot make it work. The workaround you must adopt is having an overall UIViewController that simply sits there and just holds your various views (happyThing, newThing, etc). Hope it helps!

How can i convince my parents in to letting me upgrade to the Iphone 3?
Q. My cell phone contract is up sometime in august and i really want the Iphone 3 my parents want to take me off of AT&T but i really like it. I told them i would buy the phone and i will turn 16 in august and they want me to pay the whole bill myself. I said i could try to help and pay for the data plan if the paid the other or go 50/50 for the bill? Any tips that can help? :)

A. I'm guessing they don't want to pay the data plan and extra monthly charges. Verizon also has the iPhone 4 if they're looking to switch. if you want the phone, offer to pay the difference every month which is normally $30 or so a month for the data plan. The iPhone 4 is $199 and iPhone 3GS is $49 (ATT).

If Apple has to replace your iphone 3 times, do they provide you with a free upgrade?
Q. I heard a rumor that if Apple has to replace your iPhone 3 times due to defects, they will upgrade you (for free) to the next generation iPhone, if you are using an older one (for example 3G to 3GS). Is this true?

A. This is not true. Generally they will only upgrade you in extreme events. Their warranty will replace any defected phone with a iPhone of the same model.




Powered by Yahoo! Answers

No comments:

Post a Comment