Note that there are some explanatory texts on larger screens.

plurals
  1. POPhone will be hang up when i load the data from the WebService in to the tabelView
    primarykey
    data
    text
    <pre><code> dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0ul); dispatch_sync(queue,^{ NSData *data = [NSData dataWithContentsOfURL:[NSURL URLWithString:fileUrl]]; NSDate *now=[NSDate date]; self.time = [self DateFormatWithString:now]; QBChatMessageCustom *customMessage=[[QBChatMessageCustom alloc]init]; customMessage.senderID = [[[NSUserDefaults standardUserDefaults]objectForKey:@"jabber_id"] intValue]; customMessage.recipientID=opponent.ID; customMessage.text=self.messageDBStr; customMessage.imageDataV=[[NSData alloc]initWithData:data]; customMessage.datetime=[self StringWithDate:self.time]; [self.messages addObject:customMessage]; NSInteger currentDate = [[NSDate date] timeIntervalSince1970]; if(currentDate - [self.opponent.lastRequestAt timeIntervalSince1970] &gt; 300) { // Send push [QBMessages TSendPushWithText:self.messageDBStr toUsers:[NSString stringWithFormat:@"%d", self.opponent.ID]delegate:self]; } //[HUD setHidden:YES]; [self SenderIDInsertDB:customMessage.senderID recipient:customMessage.recipientID TextMessage:customMessage.text DATA:customMessage.imageDataV dateFormat:customMessage.datetime]; // reload table [self.tableView reloadData]; [self.tableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:[messages count]-1 inSection:0] atScrollPosition:UITableViewScrollPositionBottom animated:YES]; }); </code></pre> <p>This process will be completed after that TabelView automatically scroll down. but when when process is running at that time TabelView will be hang up.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload