NSIndexPath
NSIndexPath is a class in the Foundation framework of Apple's iOS and macOS operating systems. It is used to represent the path to a specific location in a tree-structured collection, such as a table view or collection view. An NSIndexPath object encapsulates one or more indices that together represent a path to a specific item within a hierarchical data structure.
The primary use of NSIndexPath is in the context of UITableView and UICollectionView, where it is used
NSIndexPath provides several methods for creating and manipulating index paths. For instance, the indexPathForRow:inSection: method can
In summary, NSIndexPath is a fundamental class for working with hierarchical data structures in iOS and macOS