Wednesday, 13 April 2016

Get particular index value from NSMutableArray


NSArray *matches = [disObjectArray valueForKey: @"userjid"];
        if ([matches containsObject:notification.object])
        {
            NSUInteger index = [matches indexOfObject:notification.object];
            NSArray *indexPathArray = [NSArray arrayWithObject:[NSIndexPath indexPathForRow:index inSection:0]];
            [friendslistTable reloadRowsAtIndexPaths:indexPathArray withRowAnimation:UITableViewRowAnimationNone];


        }

No comments:

Post a Comment