UITableView Scrolling Slowly

I have a problem in my applications, I have a UITableView, and it scrolls slowly, not as fast as another application, even I did not create any objects or add subview to the table ... this is my code:

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {  
static NSString *searchingIdentifier = @"searchingIdentifierCell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:searchingIdentifier];  
if (cell == nil) {  
        cell = [[[UITableViewCell alloc]   initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:searchingIdentifier]autorelease];  
        cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
    }  
cell.detailTextLabel.text =[[self.dataStoreByCategory objectAtIndex:indexPath.row]objectForKey:@"storeLevel"];

    cell.textLabel.text = [listStore objectAtIndex:indexPath.row];  
    cell.imageView.image = [[self.dataStoreByCategory   objectAtIndex:indexPath.row] objectForKey:@"storeIcon"];
}

someone can help me.

+3
source share
4 answers

Is your image that you put in a UITableViewCell big?

I think you can try to comment on the line loading the image to see if it is faster. I do not see any problems in your code

+1
source

, , , .

, , . , .

, , . , .

, . , , .

+2

? , ?

, . ( ^^)

+1

Just try rebooting your device. Sometimes a device runs slowly if it is "on" for many days! Believe me!

0
source

Source: https://habr.com/ru/post/1765771/


All Articles