- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- (void)jumpToClass:(int)cIndex pageIndex:(int)pIndex {
UIActivityIndicatorView *indicator = [[UIActivityIndicatorView alloc]initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
//trick to store pIndex and cIndex
int calc = cIndex*100;
calc = calc + pIndex;
indicator.tag = calc; //trick to store pIndex
[self.view addSubview:indicator];
[indicator bringSubviewToFront:self.view];
[indicator startAnimating];
[NSTimer scheduledTimerWithTimeInterval:0.01
target:self
selector:@selector(asyncJumpToClass:)
userInfo:indicator
repeats:NO];
}
- (void)asyncJumpToClass:(NSTimer*)theTimer {
UIActivityIndicatorView *ind = (UIActivityIndicatorView *)[theTimer userInfo];
int pIndex = ind.tag%100;
int cIndex = ind.tag/100;
// еще 30 строк кода
}
kgm-rj 17.11.2015 18:17 # 0
itruf 23.02.2016 18:43 # 0
guest 23.02.2016 18:59 # 0
guest 23.02.2016 21:20 # 0
guest 23.02.2016 21:38 # 0
Propovednik_01 23.02.2016 23:54 # 0
*По мнению здешней аудитории.
Propovednik_01 23.02.2016 23:56 # 0
Patriarh_Kirill 23.02.2016 21:53 # 0
Propovednik_01 23.02.2016 23:48 # 0