Simulator UISlider可以在iphone5上使用,但不能在iphone4s或4上使用
我有一个问题,我正在使用UISlider,我有一个4或5张图片的数组,我有四个视图,每个视图都带有动画,并且 我不能滑入模拟器,但它可以与iPhone5配合使用。当我测试这个应用程序时,它在iPhone5上运行良好,但在iPhone4或4s上运行不好 这个滑块有两个动作 代码: -(无效)viewDidLoad { [超级视图下载]Simulator UISlider可以在iphone5上使用,但不能在iphone4s或4上使用,simulator,uislider,Simulator,Uislider,我有一个问题,我正在使用UISlider,我有一个4或5张图片的数组,我有四个视图,每个视图都带有动画,并且 我不能滑入模拟器,但它可以与iPhone5配合使用。当我测试这个应用程序时,它在iPhone5上运行良好,但在iPhone4或4s上运行不好 这个滑块有两个动作 代码: -(无效)viewDidLoad { [超级视图下载] [self showSaveButton]; imgArrayDate = [NSArray arrayWithObjects:
[self showSaveButton];
imgArrayDate = [NSArray arrayWithObjects:
[NSString stringWithFormat:@"date1.png"],
[NSString stringWithFormat:@"dateDay.png"],
[NSString stringWithFormat:@"dateWeek.png"],
[NSString stringWithFormat:@"dateYear.png"],
nil];
}
-(iAction)sliderDateChanged:(id)发件人{
[sliderDate setImage:[UIImage ImageName:[imgArrayDate objectAtIndex:dateSlider.value]]
}
- (iAction)单击日期按钮:(id)发件人{ [日期视图设置隐藏:否] [sliderDate setImage:[UIImage ImageName:[imgArrayDate objectAtIndex:0]] [日期滑块设置最大值:3] self.imageV.alpha=0.2; [UIView animateWithDuration:0.8动画:^{ [日期滑块设置连续:否]; [dateView setCenter:CGPointMake([mainView center].x[mainView center].y/2)] }完成:^(布尔完成){ }])
if (touchEvent.phase == UITouchPhaseEnded) {
[dateButton setBackgroundImage:sliderDate.image forState:normal];
[dateView setHidden:YES];
}
}
我不明白为什么我不能控制这个滑块你在iPhone4和4s上有哪个iOS版本?(请格式化您的代码)