iphone - Possible to make a transparent gradient mask? -
I have different images in a uiscrollview and I want to know whether it is possible to create a mask overlay of 100% - 50% - 0% transparency, so when images keep coming out, I have a smooth fade.
Depending on what you're trying to do, you can simply create an overlay view Which is black and can change it in alpha 0 and animate the change. This should do something like this:
[UIView startup permissions: @ "feedview" reference: zero]; [UIView Set Animation Duration: 0.65]; OverlayView.alpha = 0.0; [UIView commitAnimations];
Or you can use a serration, where something like this should be done:
// Create a catastrophic object for the first transition description CATransition * Transition = [catrash animation]; Transition.duration = 0.5; // In short time using the function transition. Transition.timingFunction = [CAMediaTimingFunction functionWithName: kCAMediaTimingFunctionEaseInEaseOut]; Transition.type = kCatransitionFade; [[Self.view layer] addAnimation: Infection Key: @ "SlideShow Option FadeIn"];
Comments
Post a Comment