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.

Objective-C: Instance Variable in Category

I am just asking whether it was possible to add an instance variable via a category. My special problem is, …

objective-c object asihttprequest nsindexpath identify
isEqual doesn't always work for NSIndexPath? What can I use in its place?

I've got some code that relies on comparing two NSIndexPaths and executing different code based on their equality or lack …

objective-c equality iphone-sdk-3.2 nsindexpath
Is there a way to automatically scroll to the bottom of a UICollectionView

So I'm currently working on a project that has a button that adds cells to a UICollectionView and then needs …

ios6 uicollectionview nsindexpath
How to convert NSIndexPath to NSInteger?

I have searched and found a previous answer for this question here. The problem is that the answer marked as …

iphone objective-c nsindexpath nsinteger
selectRowAtIndexPath: animated: scrollPosition: - Row is "selected"

I am using the following code to scroll to the top of a tableView: NSIndexPath *topIndexPath = [NSIndexPath indexPathForRow:0 inSection:0]; [self.…

objective-c ios xcode uitableview nsindexpath
How we can get visible Cell IndexPath when a UICollectionView Loads its data initially

Is there any way that we can get indexPathsForVisibleItems when a UICollectionView loads its data initially . Basically I want all …

ios objective-c uiscrollview uicollectionview nsindexpath
How to increment an NSIndexPath

I have a data situation where I want to use an index path. As I'm traversing the data I want …

objective-c ios nsindexpath
switch that checks NSIndexPath's row and section

I would like to set a switch statement that checks for a value if NSIndexPath. NSIndexPath is a class and …

swift switch-statement nsindexpath
UICollectionView cellForItemAtIndexPath indexPath row is nil

First time that I'm using UICollectionView. I'm trying to get the "row" value for each cell - to be used …

ios cocoa-touch uicollectionview nsindexpath
How to check if IndexPath is valid?

Prior to swift 3, i used to use for example: let path = self.tableView.indexPathForSelectedRow if (path != NSNotFound) { //do something } But …

ios swift swift3 nsindexpath indexpath