Displaying UI

Launch chat with window

In order to open the chat with specific user, use chatWith method. The syntax for this function is as follows:

(void)chatWith: (NSString *)userid 
 setBackButton: (BOOL)flag 
      observer: (UIViewController *)currentView;

Note:
The user name will be displayed at the status bar if the user is online.
Usage:

[msgSDK chatWith: @"4"
   setBackButton: YES
        observer: self
];
  • Was this helpful?
  • Yes   No