Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 10-06-2009, 08:58 AM   #5 (permalink)
antoxu
Registered Member
 
Join Date: Jun 2009
Posts: 3
Default

Quote:
Originally Posted by wbm234 View Post
I'm digging up an old thread, but this was very helpful, and so easy to implement. thanks!

In case anyone else is interested, I added easing to this transition by adding the following line to the moveFrom method:

Code:
group.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
Quick question though ... in the middle of a transition I see white in the background. Is there anyway to make this another color, or even better, an image? It probably depends on how I have my project structured, but if you could give me some points it would be great.

thanks again
Yes, it would be better to add timing function make transition nicely.

For changing the color, you can set color or image for transition view by changing the code below

Code:
- (id)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        mySubView = nil;
        transitioning = NO;
        self.backgroundColor = [UIColor clearColor]; //change your color here
    }
    return self;
}
antoxu is offline   Reply With Quote
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 24,113
Threads: 38,882
Posts: 170,570
Top Poster: smasher (2,563)
Welcome to our newest member, taptika
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:33 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.