You can use NSNumber class for doing the same:
NSDictionary *parameters = @{@"index":[NSNumber numberWithUnsignedInteger:indexPath.row]};
Or in Modern Objective C:
NSDictionary *parameters = @{@"index":@(indexPath.row)};
0
solved How to pass NSUInteger into NSDictionary