Room List - TapUI
If you are using UI implementation type, you can use the method below to open TapTalk.io's chat room list view.
#import <TapTalk/TapUIRoomListViewController.h>
#import <TapTalk/TapUI.h>
// Initialize TapTalk.io room list view controller here
TapUIRoomListViewController *roomListViewController = [[TapUI sharedInstance] roomListViewController];
UINavigationController *roomListNavigationController = [[UINavigationController alloc] initWithRootViewController:roomListViewController];
// You can choose to present or push view controller using this code
// Present room list view
[self presentViewController:roomListViewController animated:YES completion:^{
//completion
}];
// Push room list view
[self.navigationController pushViewController:roomListNavigationController animated:YES];
//Or you can add to your window root view controller
self.window.rootViewController = roomListNavigationController;
Room List View Controller Lifecycle
If you need to do something in TapUIRoomListViewController
view lifecycle, you can implement our TapUIRoomListViewControllerLifecycleDelegate
in Event Delegate - Room List Lifecycle Delegate section.
Last updated
Was this helpful?