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 07-08-2010, 09:42 AM   #1 (permalink)
swp
Registered Member
 
Join Date: Jul 2010
Posts: 1
swp is on a distinguished road
Default Right part of a Split view resizes incorrectly

Hi,

maybe this is a noob question, but this already frustrates me the whole day.

I am currently developing a Split View based iPad application, but used the "basic" Window-based application template. I have a button on the left side of the split view which should show another view on the right side when pressed.
In portrait mode the left part is shown via a popover controller accessed by a button in a navigation bar.

This works so-far, but in landscape mode the size of the right view is wrong - components go over the right edge of the screen.

Here is how my project is set up:
- The App Delegate loads the SplitViewController, which itself consists of two UIViewControllers, named LeftController and RightController. The RightController is just "dummy", it belongs to a view which just displays an empty page.
- The view belonging to the LeftController contains a button named "Settings", the Outlet and IBAction things are declared in the LeftController
- When pressing the button on the left side, the SettingsController which shall then show its view on the right side is created programmatically and added as a subview to the RightController.

Here is a code snippet of the action:
Code:
-(IBAction)settingsBtnPressed:(id)sender {
	if(!settingsViewVisible) {
		settingsViewVisible = YES;
		sc = [[SettingsController alloc] initWithNibName:@"Settings" bundle:nil];
		[sc setParentLeftController:self];
		[[myRightController view] addSubview:sc.view];
		[myRightController dismissPopoverIfNeeded];
	}
}
the setParentLeftController and dismissPopoverIfNeeded are methods I wrote to interact with the caller.

Now, when in landscape mode, the view seems to be made 1024x768 pixels wide and put beneath the left view, thus chopping off some parts at the right.

The flexibility settings are correctly set in the nib.

When deselecting the things right and below the flexibility arrows, resizing occurrs correctly when starting in portrait mode, but when starting in landscape mode, I have the same chopping problem.

Any ideas?

Last edited by swp; 07-08-2010 at 09:46 AM.
swp is offline   Reply With Quote
Reply

Bookmarks

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: 348
12 members and 336 guests
akacaj, cgokey, esoteric, EXOPTENDAELAX, GHuebner, HemiMG, Mirotion22, mjnafjke, Pudding, SLIC, Sloshmonster, Sonuye857
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,652
Threads: 94,115
Posts: 402,887
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Sonuye857
Powered by vBadvanced CMPS v3.1.0

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