- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
-(void)shekinNow:(id)prev
{
float YI = rand() / (float)RAND_MAX;
NSArray *subv = [imageV subviews];
long index = (long)(rand()/(RAND_MAX/([subv count])));
SlotUnit *unit = [subv objectAtIndex:index];
if(unit == prev) {
[self shekinNow:prev];//рекурисия епт
return;
}
CGFloat gradus = ((YI*70/99)*100);
CGFloat radian = (gradus * M_PI / 180);
[unit setTag:0];
[UIView beginAnimations:@"one" context:unit];
[UIView setAnimationDidStopSelector:@selector(moveTuda:finished:context:)];
[UIView setAnimationDuration:anidur];
[UIView setAnimationDelegate:self];
[unit sendRotating:radian];
[UIView commitAnimations];
}
UncleAli 06.12.2011 23:43 # 0
TheHamstertamer 07.12.2011 15:10 # 0
Psionic 07.12.2011 15:34 # 0
bugmenot 07.12.2011 21:41 # 0
Lure Of Chaos 07.12.2011 22:21 # +1
Psionic 08.12.2011 13:59 # 0
kipar 07.12.2011 15:52 # 0
Psionic 07.12.2011 15:58 # 0