The title says it all.
I have a generic function that is used to run actions on the UI thread. I want to simple invoke the action if I am already on the UI thread.
Is there a way to do this with MonoTouch?
The title says it all.
I have a generic function that is used to run actions on the UI thread. I want to simple invoke the action if I am already on the UI thread.
Is there a way to do this with MonoTouch?
Yes it is NSThread.IsMain
.
See this post.