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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.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 12-19-2009, 05:24 AM   #1 (permalink)
Registered Member
 
Join Date: Dec 2009
Posts: 41
Question Problem with rotation of iphone

Hi,

I have desgnided an app with two views: the first contains a simple table with some rows and the second display the string selected on table

I use this code to switch to second view (or come back to the first) or code like this

Code:
iBanner2ViewController *firstView = [[iBanner2ViewController alloc] initWithNibName:@"iBanner2ViewController" bundle:[NSBundle mainBundle]];
	iBannerVisualizer *secondView = [[iBannerVisualizer alloc] initWithNibName:@"iBannerVisualizer" bundle:[NSBundle mainBundle]];
	
	[self.view addSubview:firstView.view];
	[secondView release];
now in both view controllers, I uncomments the piece of code to enable the autorotation, but when I simulate the app and try to"rotate", there is a strange beaviour:

the second view appear only half part and the other art is busied by the part of first view (the list)

I added a screenshot,I hope to be clear explaining my troubles

Good bye
Attached Images
File Type: jpg Snapshot 2009-12-19 11-22-35.jpg (44.6 KB, 0 views)
alexgiul is offline   Reply With Quote
Reply

Bookmarks

Tags
table, view

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: 244
13 members and 231 guests
2WeeksToGo, ADY, BrianSlick, Dani77, Dattee, headkaze, kapps11, mer10, mgon987, timle8n1, Touchmint, vigu360
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,879
Threads: 89,228
Posts: 380,745
Top Poster: BrianSlick (7,129)
Welcome to our newest member, mgon987
Powered by vBadvanced CMPS v3.1.0

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