CooperRS / RMPickerViewController

This is an iOS control for selecting something using UIPickerView in an UIAlertController like manner
MIT License
381 stars 51 forks source link

Warning Issue: UIVisualEffectView and opacity animation #35

Closed wm-j-ray closed 9 years ago

wm-j-ray commented 9 years ago

I am trying to fix the following warning under IOS 8.4 and xCode 6:

<UIVisualEffectView is being asked to animate its opacity. This will cause the effect to appear broken until opacity returns to 1.

There is a discussion of this issue of SO here http://stackoverflow.com/questions/26325141/what-does-the-runtime-warning-this-will-cause-the-effect-to-appear-broken-until

Any help would be appreciated and thanx in advance.

CooperRS commented 9 years ago

As up to now I just ignored the warning because the effect looked just like I wanted it to.

The problem is the background view. You can get rid of the warning by disabling blur effects for the background view. But then the background won't be blurred anymore. It will only be dimmed.

I'll give the trick from SO (changing the background color alpha value) a try :).

wm-j-ray commented 9 years ago

Thanks for getting back. I like the blurred BG as well so I hope the warning can get squished. 

Be of Good Cheer

On Sun, Jun 21, 2015 at 2:42 PM, Roland Moers notifications@github.com wrote:

As up to now I just ignored the warning because the effect looked just like I wanted it to. The problem is the background view. You can get rid of the warning by disabling blur effects for the background view. But then the background won't be blurred anymore. It will only be dimmed.

I'll give the trick from SO changing the background color alpha value a try :).

Reply to this email directly or view it on GitHub: https://github.com/CooperRS/RMPickerViewController/issues/35#issuecomment-113940069

CooperRS commented 9 years ago

Hmm, the trick from SO did not work, at least for me :/. Also tried use a cross dissolve animation to get a fade in and out animation of the background view. But that did not work either.

Guess the warning will stay for a while. I have no other idea how I could fade in and out the background view.

CooperRS commented 9 years ago

I created a new ticket in the RMActionController (#3) project as this is the component responsible for the warning.