Jul 17, 2014 14:02
@AshishKakkad Bye Bye
Jul 17, 2014 13:57
but no output
Jul 17, 2014 13:57
bcoz I have tried with number of ways
Jul 17, 2014 13:56
can you make some working sample
Jul 17, 2014 13:54
let me try
Jul 17, 2014 13:54
hm
Jul 17, 2014 13:43
okk
Jul 17, 2014 13:42
but it is loading the content from the bottom
Jul 17, 2014 13:40
yup
Jul 17, 2014 13:40
index 0 to 19?
Jul 17, 2014 13:40
then what would be the indexes for it
Jul 17, 2014 13:40
Suppose I have 400 msgs in the array.. And I need to first show the recent 20 msgs i.e.e 391 to 400
Jul 17, 2014 13:39
but unable to do
Jul 17, 2014 13:39
but I am getting the issue in loading the messages
Jul 17, 2014 13:38
I have added that
Jul 17, 2014 13:38
same as whats app
Jul 17, 2014 13:38
yupi
Jul 17, 2014 13:36
Please look upon this question
Jul 17, 2014 13:36
1
Q: load earlier messages concept in tableview

SudhaI was trying to add the load earlier messages concept same as Whats app. But it is inserting the rows from the bottom of the table instead of the top. #define kNumberOfItemsToAdd 20 -(IBAction)loadearliermessages:(id)sender { NSUInteger i, totalNumberOfItems = [messageArray count]; n...

Jul 17, 2014 13:34
Hello to all
 

 VOID

Message Bin
Jul 17, 2014 13:41
-(IBAction)loadearliermessages:(id)sender
{
NSUInteger i, totalNumberOfItems = [messageArray count];
newNumberOfItemsToDisplay = MIN(totalNumberOfItems, numberOfItemsToDisplay + kNumberOfItemsToAdd);
NSMutableArray *indexPaths = [[NSMutableArray alloc] init];
for (i=numberOfItemsToDisplay; i<newNumberOfItemsToDisplay; i++) {
[indexPaths addObject:[NSIndexPath indexPathForRow:i inSection:0]];
}
numberOfItemsToDisplay = newNumberOfItemsToDisplay;
[self.tableView beginUpdates];
[self.tableView insertRowsAtIndexPaths:indexPaths withRowAnimation:UITableViewRowAnimationBottom];
 
May 5, 2014 11:49
@DivineDesert
May 5, 2014 11:27
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];
May 5, 2014 11:21
Mam please check it
May 5, 2014 11:21
May 5, 2014 11:05
Can you check my code once?
May 5, 2014 11:04
XMPPStream *xmppStream;
May 5, 2014 11:03
[xmppRoom activate:xmppStream];
May 5, 2014 11:03
yes I done the same
May 5, 2014 11:03
[[[[self appDelegate] xmppStream] myJID] bare];
[xmppRoom activate:xmppStream];
[xmppRoom joinRoomUsingNickname:@"Sudha" history:nil];

[xmppRoom addDelegate:self delegateQueue:dispatch_get_main_queue()];
May 5, 2014 11:02
[[[[self appDelegate] xmppStream] myJID] bare];
May 5, 2014 11:02
I tried like this
May 5, 2014 11:02
but didn't get any success
May 5, 2014 11:02
Yes Mam
May 5, 2014 11:01
hello Mam
May 5, 2014 10:44
@DivineDesert
 
May 5, 2014 10:44
great
May 5, 2014 10:44
hmm
May 5, 2014 10:42
yup
May 5, 2014 10:33
sare delegates call ho rhae hain
May 5, 2014 10:32
problem he toh nahi mil rahi
May 5, 2014 10:31
nope
May 5, 2014 10:31
muc he try kar rahi hu
May 5, 2014 10:17
maine karna hai but abhi tk nhai kiya
May 5, 2014 10:16
nope
May 5, 2014 09:14
okkk
May 5, 2014 08:22
@PiyushDubey main aapko apna dummy code send karu?
May 5, 2014 07:56
@PiyushDubey
May 5, 2014 07:56
May 5, 2014 07:51
hm batati hu