超基本的 UIView/CAGradientLayer 类。使用 CATransaction 动画。
CXGradientView *gradientView = [[CXGradientView alloc] initWithFrame:self.view.bounds];
gradientView.colors = @[[UIColor redColor], [UIColor whiteColor], [UIColor blueColor]];
[self.view addSubview:gradientView];