It would be like this:
[NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(getMatchListWS:) userInfo:nil repeats:YES];
Put it in your viewDidLoad
, so you don't have problems with multiple events being fired. It can happen if you put it on viewWillAppear
or viewDidAppear
, and you are pushing or showing a modalViewController.