override func viewDidLoad() {
super.viewDidLoad()
var timer = Timer.scheduledTimer(timeInterval: 5, target: self, selector: #selector(self.getdata) , userInfo: nil, repeats: true);
}
func getdata()
{
//this function calls for every 5 seconds
}
No comments:
Post a Comment