0
在我的项目之一通话功能,我得在这里这些代码10:为UIView的动画
- (void) makeAnim1{
//downward animation for carousel
[UIView animateWithDuration:**3.5**
delay:0.25
options: UIViewAnimationCurveLinear
animations:^{
carousel.frame = CGRectOffset(carousel.frame, 0, **490**);
}
completion:^(BOOL finished){ //task after an animation ends
[self performSelector:@selector(makeAnim1_1) withObject:nil afterDelay:3.0];
NSLog(@"Done!");
}];
}
- (void) makeAnim1_1{
//upward animation for carousel
[UIView animateWithDuration:**3.5**
delay:0.2
options: UIViewAnimationCurveLinear
animations:^{
carousel.frame = CGRectOffset(carousel.frame, 0, **-480**);
}
completion:^(BOOL finished){
//timer for the reveal button
[NSTimer scheduledTimerWithTimeInterval:0.1 //this arranges the duration of the scroll
target:self
selector:@selector(revealButton)
userInfo:nil
repeats:NO];
NSLog(@"Done!");
}];
}
我想使他们在短短的一个短的实现。所以他们将只是一个功能。 我试过把所需的值和它们分配在大胆的版本的代码中。我需要两个对应的数组。例如:
arrayA [3] = A,B,C;
arrayB [3] = a,b,c;
当A被选中时,它等于a。