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

View Single Post
Old 10-06-2009, 09: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
 

» Advertisements
» Stats
Members: 158,741
Threads: 89,197
Posts: 380,546
Top Poster: BrianSlick (7,129)
Welcome to our newest member, AlexRob58
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 04:08 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.