muukii / CPKenburnsView

CPKenburnsView is ken burns effect
MIT License
105 stars 19 forks source link

Problem on iPhone 4 #10

Closed ortizroberto closed 10 years ago

ortizroberto commented 10 years ago

First of all I like what you're doing here.

I am using CPKnburnsView in one of my projects and when I test it in the simulator it works perfectly, but when I test it on a iPhone 4 the View just goes black.

Any ideas what might be causing this problem?

muukii commented 10 years ago

Sorry, I don't know. Please upload movie.

ortizroberto commented 10 years ago

I solved the problem by adding the KenburnsView as a subview before setting it's image. So instead of:

kenbunrsView.image = [UIImage imageWithData:_imageData];
[self addSubview: kenbunrsView];

Now I have:

[self addSubview: kenbunrsView];
kenbunrsView.image = [UIImage imageWithData:_imageData];