Top "Nsindexpath" questions

The NSIndexPath class represents the path to a specific node in a tree of nested array collections in Objective-C. This path is known as an index path.

UITableView Cell IndexPath

Can anyone tell me how can I get a cell IndexPath? I was saving the IndexPath in the tableView: cellForRowAtIndexPath: …

iphone objective-c uitableview nsindexpath
How to convert int to nsindexpath?

I am making a basic quiz application.The choices are in the form of a table view. If the user …

ios swift nsuserdefaults nsindexpath
NSIndexpath.item vs NSIndexpath.row

Does anyone know the difference between NSIndexpath.row and NSIndexpath.item? Specifically, which one do I use in: -(UITableViewCell *)…

ios uitableview nsindexpath
How can I check if an indexPath is valid, thus avoiding an "attempt to scroll to invalid index path" error?

How can I check to see whether an indexPath is valid or not? I want to scroll to an indexPath, …

ios swift uicollectionview nsindexpath
Get the IndexPath from inside a UITableViewCell subclass in Swift

I have a custom UITableViewCell subclass and its associated xib. I have a UILabel and a UIButton in this cell …

ios uitableview swift uibutton nsindexpath
iOS: reload single cell of UICollectionView

I am trying to follow the following post on reload a cell in a UICollectionView: UICollectionView update a single cell …

ios objective-c uicollectionview nsindexpath
iOS UITableView Scroll to bottom of section

I am going to make a tableview with 2 sections inside it. I can add cells to every section programmatically and …

ios xcode uitableview nsindexpath
Set NSIndexPath programmatically

My question is: How to set NSIndexPath programmatically. For example I add method: - (void)setDefaultValue{ tempIndexPath = [NSIndexPath indexPathForRow:0 inSection:1]; } …

objective-c ios nsindexpath
Comparing NSIndexPath Swift

If I have a NSIndexPath constant declared for a UITableView, is it valid to compare using the == operator? This is …

swift nsindexpath
How to compare two NSIndexPaths?

I'm looking for a way to test if to index paths are equal, and by equal I mean equal on …

iphone objective-c cocoa-touch nsindexpath