Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [self.tableView insertRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationFade];
- - (void) insertScannedPeripherals {
- NSMutableArray * pArray = [[LeDiscovery sharedInstance] foundPeripherals];
- for (int i=0; i<pArray.count; i++){
- [mainVCfoundPeripherals insertObject:[pArray objectAtIndex:i] atIndex:0];
- NSIndexPath * indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
- NSLog(@"DEBUG: Element at index %i is %@", i, pArray[i]);
- [self.tableView insertRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationFade];
- }
Add Comment
Please, Sign In to add comment