Skip to main content
This question isn't even remotely about Objective-C.
Link
nhgrif
  • 25.4k
  • 3
  • 64
  • 129
Tweeted twitter.com/#!/StackCodeReview/status/511667146318172161
deleted 6 characters in body
Source Link
user53113
user53113

Is there any better way to write this code? Swift provides a few tools like gerenic structs and classes or protocol conformance type arrays. Can't they help write more proficient code here?

Is there any better way to write this code? Swift provides a few tools like gerenic structs and classes or protocol conformance type arrays. Can't they help write more proficient code here?

Is there any better way to write this code? Swift provides tools like gerenic structs and classes or protocol conformance type arrays. Can't they help write more proficient code here?

edited body
Source Link
user53113
user53113

MasterViewController has two UITableViewCellsUITableViewCells. The cell with indexPath [0, 0] has a detailTextLabel that displays a String. Each time I click on this cell, I go to the DetailViewController which, in this case, displays a list of StringsStrings. The cell with indexPath [0, 1] has a detailTextLabel that displays an Int. Each time I click on this cell, I go to the DetailViewController, which in this case, displays a list of Ints.

MasterViewController has two UITableViewCells. The cell with indexPath [0, 0] has a detailTextLabel that displays a String. Each time I click on this cell, I go to the DetailViewController which, in this case, displays a list of Strings. The cell with indexPath [0, 1] has a detailTextLabel that displays an Int. Each time I click on this cell, I go to the DetailViewController, which in this case, displays a list of Ints.

MasterViewController has two UITableViewCells. The cell with indexPath [0, 0] has a detailTextLabel that displays a String. Each time I click on this cell, I go to the DetailViewController which, in this case, displays a list of Strings. The cell with indexPath [0, 1] has a detailTextLabel that displays an Int. Each time I click on this cell, I go to the DetailViewController, which in this case, displays a list of Ints.

deleted 2 characters in body
Source Link
user53113
user53113
Loading
deleted 20 characters in body
Source Link
Jamal
  • 35.2k
  • 13
  • 134
  • 238
Loading
edited title
Link
Phrancis
  • 20.5k
  • 6
  • 70
  • 155
Loading
Source Link
user53113
user53113
Loading