Objective C method which operates similar to JavaScript's "setTimeout" function