标签:

首先:自定义一个渐变视图,在自定义视图中重写drawRect
#import "ViewController.h"
#import "MyView.h"
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad
{
[super viewDidLoad];
MyView *view = [[MyView alloc] initWithFrame:self.view.bounds];
[self.view addSubview:view];
}
接下来主要分为5步


步骤还是和上面一样!

作者: 清澈Saup
出处: http://www.cnblogs.com/qingche/
本文版权归作者和博客园共有,欢迎转载,但必须保留此段声明,且在文章页面明显位置给出原文连接。
标签:
原文地址:http://www.cnblogs.com/qingche/p/5280409.html