-(void)startSearchAnim
{
UIView *temp=[backView viewWithTag:searchImageTag];
CABasicAnimation* rotationAnimation;
rotationAnimation = [CABasicAnimation animationWithKeyPath:@"transform.rotation.z"];
rotationAnimation.toValue = [NSNumber numberWithFloat: 360*M_PI/180.f ];
rotationAnimation.duration = 5;
rotationAnimation.cumulative = NO;
rotationAnimation.repeatCount = 100;
[temp.layer addAnimation:rotationAnimation forKey:@"rotationAnimation"];
timer=[NSTimer scheduledTimerWithTimeInterval:0.04 target:self selector:@selector(searchTime) userInfo:nil repeats:YES];
}
-(void)searchTime
{
search_text.text=[NSString stringWithFormat:@"%@%d",@"%",++timeInt];
if(timeInt==100)
{
NSLog(@"%d",dev_list.count);
UIView *temp=[backView viewWithTag:searchImageTag];
[temp.layer removeAllAnimations];
[timer invalidate];
timer=nil;
[mTableView reloadData];
}
}