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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 10-06-2010, 01:21 PM   #1 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,990
BrianSlick has a spectacular aura about
Default iPad UISplitViewController Portrait Launch Issue

I solved it as I was typing this up, so this is now a tip for anyone else who discovers the same problem. My Google-fu was weak on this one.

The problem:

I'm setting up a fairly basic iPad app (converted to universal from an iPhone app, if that matters), and using a split view. View controller on the left, view controller on the right, nothing fancy. Rotating back and forth, everything works just fine. If I launch from landscape, everything is just fine.

If I launch from portrait, I have a problem. I should be seeing the right view controller, but I am instead seeing the left view controller, sized up to fill the screen. As soon as I rotate, everything goes back to normal, and stays normal. This only appears to be a problem with portrait launch.

The solution:

If you open up MainWindow.xib and select the split view controller, in the inspector (Cmd-1) there is an option for Layout "Wants Full Screen". The correct setting for this appears to be OFF. If it is on, you get the problem as I described it. Turn it off, everything works.

Corresponding problem this also solves:

Of course the left side is normally a navigation controller, and I had put buttons in the upper left and right, along with a title. When viewed from the popover, the buttons and title were shifted down, actually sliding behind the popover's view. The available space was fine, so this left a lot of margin at the top of the popover, but the display of the buttons was partially obscured.
__________________
BriTer Ideas LLC - Professional iOS App Development. Available for hire.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
Definitive Guide To Properties | UITableView Series | Guide To Troubleshooting | Model Object Overview

Do you sit at a desk all day? Walk instead! Follow along with my treadmill desk adventures.
BrianSlick is offline   Reply With Quote
Reply

Bookmarks

Tags
ipad, portrait, uisplitviewcontroller

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 346
8 members and 338 guests
headkaze, mistergreen2011, nobstudio, Objective Zero, rayjeong, revg, Sloshmonster, v1n2e7t
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,655
Threads: 94,116
Posts: 402,889
Top Poster: BrianSlick (7,990)
Welcome to our newest member, pungs
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 11:13 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0