iOS: Added dotask method.

Added dotask method