[ios] added dialog code