IMbeeUI
What is it?
Integration
Examples
#import <IMbeeUI/IMbeeUI.h>
#import <IMbeeCore/IMbeeCore.h>
// ...
- (IBAction)presentChatRoom:(id)sender {
Conversation *conv = [[IMbeeCore conversations] conversationWithWoowosId:@"190ab...cd874"];
IMMessageListVC *vc = [IMbeeUI presentConversation:conv
intoView:self.contr
onViewController:self];
[vc setMessageDelegate:self];
}
- (void)buttonPressed:(ButtonContentPart *)button onMessage:(Message *)message
{
if ([button.type isEqualToString:@"url"]) {
NSURL *url = [NSURL URLWithString:button.payload];
if (url)
[[UIApplication sharedApplication] openURL:url];
}
}UI Customization
Last updated