diff --git a/Examples/ObjectiveC/AnimatedLineExample.m b/Examples/ObjectiveC/AnimatedLineExample.m index 4694bef3..baceae9b 100644 --- a/Examples/ObjectiveC/AnimatedLineExample.m +++ b/Examples/ObjectiveC/AnimatedLineExample.m @@ -63,6 +63,7 @@ - (void)animatePolyline { } - (void)tick:(NSTimer*)timer { + NSAssert([[NSThread currentThread] isMainThread], @"%s must be accessed on the main thread, not %@", __PRETTY_FUNCTION__, [NSThread currentThread]); if (self.currentIndex > self.locations.count) { [self.timer invalidate]; return;