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 09-12-2009, 02:37 AM   #14 (permalink)
unfalkster
Registered Member
 
Join Date: Feb 2009
Posts: 4
Default

Quote:
Originally Posted by Warp View Post
What is the easiest way of fade from one view to another, but through a black screen? In other words, first the current view fades to black, and then the new view fades in from black.

I tried to do this by using the CATransition object using kCATransitionFade as the transition type so that I first remove the current subview and add a black subview and then in the animationDidStop method I call it again, but this time I remove the black subview and add the new view.

This works in the simulator like a charm. However, on the iPhone there's a really annoying flickering during the transition. I have no idea what is causing it.

If I transition (using kCATransitionFade) from the old view to the new view, it works ok, but if I do it like I described above, the annoying flickering happens. The only difference between these two situations is that in the latter case I'm launching a new transition from the animationDidStop method (while in the former case I'm not). I have no idea if this is what is causing the problem (or why it would be).

I've got exactly this same "flickering" problem, same symptoms. But I'm using only one CATransition. It happens randomly. Actually, I'm using several transitions but on different layers (sometimes with a parent relationship), so I don't think this will be the source of trouble. It would be nice to find some good explanation about the way calayer animate catransition, what (and when) it does things, in the "render tree" or anywhere else...
unfalkster is offline   Reply With Quote
 

» Advertisements
» Online Users: 288
15 members and 273 guests
ADY, aikhan, astalavista, chemistry, chits12345, dcool, Joseph Nardone, leahov, mer10, NSeven, padsoftware, Paul10, pavanindira, Promo Dispenser, RoryHarvey
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,877
Threads: 89,219
Posts: 380,706
Top Poster: BrianSlick (7,129)
Welcome to our newest member, peterkessler45
Powered by vBadvanced CMPS v3.1.0

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