Quote:
Originally Posted by wbm234
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;
}