[[UIApplication sharedApplication] beginBackgroundTaskWithExpirationHandler:nil];
self.timer = [NSTimer scheduledTimerWithTimeInterval: target:self selector:@selector(btnClicked:) userInfo:nil repeats:YES];
[[NSRunLoop currentRunLoop] addTimer:self.timer forMode:NSRunLoopCommonModes];