How to create NSIndexPath programmatically in swift?

0 votes
362 views
asked Apr 16, 2015 in Swift by john (4,220 points)
Hi All.

How to create NSIndexPath programmatically in swift?

1 Answer

0 votes
answered Apr 16, 2015 by kalpana (3,995 points)
Hi John

   It is very simple for creating NSIndexpath u should know row and section

Example:

var indexPath = NSIndexPath(forRow: 1, inSection: 0)
...