我在我的视图控制器中创建了一个视图,我希望当我加载该子视图或显示它可能从原始视图控制器的左到右加载时
subView = [[UIView alloc] initWithFrame:CGRectMake(20, 125, 560,530)];
[subView setBackgroundColor:[UIColor colorWithRed:216./255 green:238./255 blue:209./255 alpha:1.0]];
UIButton *backButton = [UIButton buttonWithType:UIButtonTypeCustom];
backButton.frame = CGRectMake(40,20, 169,42);
UIImage*btnImage = [UIImage imageNamed:@"back.PNG"];
[backButton setImage:btnImage forState:UIControlStateNormal];
[backButton addTarget:self action:@selector(backButtonClicked:) forControlEvents:UIControlEventTouchUpInside];
[subView addSubview:backButton];
[self.view addSubview:subView];
我想在按钮单击时打开此视图我希望当单击按钮时此视图应该出现在屏幕上,从左向右滑动,因为通常会打开新的视图控制器。