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 12-22-2010, 09:08 AM   #1 (permalink)
MMS
Registered Member
 
Join Date: Nov 2009
Location: Connecticut
Posts: 95
MMS is on a distinguished road
Red face Image Views Moving as I Page Through App

I have something strange happening as I scroll through my App-

The App is a simple View based application, similar to a book, that loads a new view each time a user pushes a next and/or back button. There are 23 views. Oddly, the views seem to be moving a little bit down and to the side as I scroll through the app in the ipad simulator. The exposed edges are then either black, or seam to show part of an image from another view.

I've heard of this problem happening with Scrollview with paging enabled if there isn't some space programmed in between the "pages". But I'm NOT using scrollview. I created each view individually in Interface Builder AND each view has it's own view controller.

The only thing I can think of is that I DO have some views locked to Portrait or PortraitUpsideDown orientation and other views locked to LandscapeRight or Left. But I'm not sure how that would create this issue.

Any tips would be much appreciated!

Thank you!
__________________
Marjorie Sterne

Occhio Go - Venezia
MMS is offline   Reply With Quote
Old 12-22-2010, 09:14 AM   #2 (permalink)
Cocoa Junkie
 
Duncan C's Avatar
 
Join Date: Dec 2008
Location: Northern Virginia
Posts: 6,003
Duncan C has a spectacular aura about
Default

Quote:
Originally Posted by MMS View Post
I have something strange happening as I scroll through my App-

The App is a simple View based application, similar to a book, that loads a new view each time a user pushes a next and/or back button. There are 23 views. Oddly, the views seem to be moving a little bit down and to the side as I scroll through the app in the ipad simulator. The exposed edges are then either black, or seam to show part of an image from another view.

I've heard of this problem happening with Scrollview with paging enabled if there isn't some space programmed in between the "pages". But I'm NOT using scrollview. I created each view individually in Interface Builder AND each view has it's own view controller.

The only thing I can think of is that I DO have some views locked to Portrait or PortraitUpsideDown orientation and other views locked to LandscapeRight or Left. But I'm not sure how that would create this issue.

Any tips would be much appreciated!

Thank you!
Does each view have its own view controller, or are you swapping views manually? Post the code that pages between views.
__________________
Regards,

Duncan C
WareTo

Check out our apps in the Apple App store


Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.

See this tutorial on using UIView animations and layer animations:

See this thread on generating random, non-repeating text

Check out a very cool Macintosh Kaleidoscopes app called ScopeWorks that we released to the Mac App store.
Duncan C is offline   Reply With Quote
Old 12-22-2010, 09:22 AM   #3 (permalink)
MMS
Registered Member
 
Join Date: Nov 2009
Location: Connecticut
Posts: 95
MMS is on a distinguished road
Default

Quote:
Originally Posted by Duncan C View Post
Does each view have its own view controller, or are you swapping views manually? Post the code that pages between views.
I guess I am swapping manually- eg

-(IBAction)switchviewid)sender;
-(IBAction)backid)sender;
__________________
Marjorie Sterne

Occhio Go - Venezia
MMS is offline   Reply With Quote
Old 12-22-2010, 09:38 AM   #4 (permalink)
MMS
Registered Member
 
Join Date: Nov 2009
Location: Connecticut
Posts: 95
MMS is on a distinguished road
Default

Quote:
Originally Posted by MMS View Post
I guess I am swapping manually- eg

-(IBAction)switchviewid)sender;
-(IBAction)backid)sender;
I should add that the problem didn't start happening until after I locked the orientation of the views. And, another strange thing- if I flip the simulator around 360 degrees, the images go back into place.
__________________
Marjorie Sterne

Occhio Go - Venezia

Last edited by MMS; 12-22-2010 at 10:04 AM.
MMS is offline   Reply With Quote
Old 12-22-2010, 10:31 AM   #5 (permalink)
Cocoa Junkie
 
Duncan C's Avatar
 
Join Date: Dec 2008
Location: Northern Virginia
Posts: 6,003
Duncan C has a spectacular aura about
Default

Quote:
Originally Posted by MMS View Post
I should add that the problem didn't start happening until after I locked the orientation of the views. And, another strange thing- if I flip the simulator around 360 degrees, the images go back into place.
So show the code that swaps between views! (Second request)
__________________
Regards,

Duncan C
WareTo

Check out our apps in the Apple App store


Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.

See this tutorial on using UIView animations and layer animations:

See this thread on generating random, non-repeating text

Check out a very cool Macintosh Kaleidoscopes app called ScopeWorks that we released to the Mac App store.
Duncan C is offline   Reply With Quote
Old 12-22-2010, 11:02 AM   #6 (permalink)
MMS
Registered Member
 
Join Date: Nov 2009
Location: Connecticut
Posts: 95
MMS is on a distinguished road
Default

Quote:
Originally Posted by Duncan C View Post
So show the code that swaps between views! (Second request)
I'm sorry. Was not deliberately not responding; Was updating the SDK while asking questions so couldn't get to my code to cut and paste it. Here it is...

-(IBAction)switchviewid)sender
{
TwoViewController *Two = [[TwoViewController alloc] initWithNibName:nil bundle:nil];
Two.modalTransitionStyle= UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController:Two animated:YES];
[Two release];
}
- (IBAction)backid)sender
{
[self dismissModalViewControllerAnimated:YES];
}

But, oddly, the image moving issue is NOT happening in the new sdk/simulator??
__________________
Marjorie Sterne

Occhio Go - Venezia
MMS is offline   Reply With Quote
Reply

Bookmarks

Tags
autoresize, autorotate, interface orientation, scrollview, uiimageview and uiimage

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: 392
9 members and 383 guests
chemistry, daudrizek, HemiMG, jeroenkeij, Kirkout, PavelMik, whitey99
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,665
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, daudrizek
Powered by vBadvanced CMPS v3.1.0

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