How to Log Out of the iOS SDK

To logout from TTKit and deauthenticate the user, please use the following command:

[[TTKit sharedInstance] logout]

Logging out of TTKit will delete all local data including message and attachments, it will also deauthenticate the user's key/secret pair.