1
어떻게 UIImageViews 슬라이드를 만들 수 있습니까? 두 버튼을 누르면 UIImageViews 두 측면에서보기를 통해 슬라이드해야합니다 단추와 두 UIImageViews보기의 saide 있습니다. 어떤 시체에서 시작해도 될까요?UIImageView 슬라이드 오버
어떻게 UIImageViews 슬라이드를 만들 수 있습니까? 두 버튼을 누르면 UIImageViews 두 측면에서보기를 통해 슬라이드해야합니다 단추와 두 UIImageViews보기의 saide 있습니다. 어떤 시체에서 시작해도 될까요?UIImageView 슬라이드 오버
[UIView animateWithDuration:durationOfAnimation animations:^{
CGRect imageView1Frame = imageView1.frame;
imageView1Frame.origin.x += 100 //or whatever number of pixels you want to slide them
imageView1.frame = imageView1Frame;
CGRect imageView2Frame = imageView2.frame;
imageView2Frame.origin.x += 100 //or whatever number of pixels you want to slide them
imageView2.frame = imageView2Frame;
}];
여기서 durationOfAnimation
은 원하는 시간 (초 단위)입니다.