翻转
showFront=!showFront;
[UIView transitionWithView:self duration:0.65f
options:UIViewAnimationOptionTransitionFlipFromRight animations:^{
self.iFrontView.hidden = !self.showFront;
self.iBackImageView.hidden = self.showFront;
} completion:^(BOOL finished) {
}];
洗牌- (void)xipai{
self.count=0;
if ([self.iType isEqualToNumber:@1]) {
self.iCardViewRandomArray=[NSMutableArray arrayWithArray:@[@0,@1,@2,@3,@4,@5,@6,@7,@8]];
for (int i=0;i<9;i++){
NSNumber* context=[NSNumber numberWithInt:i];
[UIView beginAnimations:nil context:(void*)context];
[UIView setAnimationDuration:0.1];
int xTo = 320/8*7;
int xFrom = 320/8;
CGFloat x = (CGFloat)(xFrom + arc4random() % (xTo - xFrom+