<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">//swift 2.2+</div><div class="">NSThread.isMainThread()</div><div class=""><br class=""></div><div class="">//swift 3+</div><div class="">Thread.isMainThread</div><div class=""><br class=""></div><br class=""><div><blockquote type="cite" class=""><div class="">On Jul 13, 2016, at 12:27 AM, qi bo via swift-users &lt;<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class="">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" class="">

<div class=""><p dir="auto" class="">isMainThread is an method in object-c. how to indicate current thread is main thread?</p><p dir="auto" class="">thank you<br class="">
Bob</p>
</div>

_______________________________________________<br class="">swift-users mailing list<br class=""><a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-users<br class=""></div></blockquote></div><br class=""></body></html>