Quantcast
Channel: MarsHut
Viewing all articles
Browse latest Browse all 6551

Master-Detail

$
0
0
Xcode 6 beta 3 just created an app skeleton iOS Master-Detail using Swift for me.

class MasterViewController: UITableViewController

var objects = NSMutableArray()

override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {...}

Why NSMutableArray? Is there any compelling reason for not using a Swift array?

Why override?
prepareForSegue is part of NSSeguePerforming protocol, but UITableViewController does not conform to this protocol.

Gerriet.

Viewing all articles
Browse latest Browse all 6551