开始时候的效果图:
点击之后的效果图:
工程架构:
工程详细架构:
代码:
#import "RootViewController.h" //加入头文件 #import "My97DatePicker.h" - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. CGRect frame = CGRectMake(131, 155, 122, 29); My97DatePicker* piker = [[My97DatePicker alloc] initWithFrame:frame]; [self.view addSubview:piker]; }