Mam I have used github sample code and added just these lines to enter into the room - (IBAction)mychatroom:(id)sender
{
XMPPJID *roomJID = [XMPPJID jidWithString:@"
[email protected]"];
XMPPRoomMemoryStorage *roomMemoryStorage = [[XMPPRoomMemoryStorage alloc] init];
xmppRoom = [[XMPPRoom alloc] initWithRoomStorage:roomMemoryStorage
jid:roomJID
dispatchQueue:dispatch_get_main_queue()];
[[[[self appDelegate] xmppStream] myJID] bare];
[xmppRoom activate:xmppStream];
[xmppRoom joinRoomUsingNickname:@"Sudha" history:nil];