Jak od razu uruchomić NSTimer?

Muszę zadzwonić do metody, gdy moja aplikacja się uruchomi, a następnie wywołać tę samą metodę co 5 sekund.

Mój kod jest całkiem prosty:

// Call the method right away
[self updatestuff:nil]

// Set up a timer  so the method is called every 5 seconds
timer = [NSTimer scheduledTimerWithTimeInterval: 5
                                          target: self
                                        selector: @selector(updatestuff:)      
                                        userInfo: nil
                                         repeats: YES];

Czy istnieje opcja timera, który uruchamia się natychmiast, a następnie co 5 sekund?

questionAnswers(4)

yourAnswerToTheQuestion