Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2014
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. func numberOfSectionsInTableView(tableView: UITableView) -> Int
  2.  
  3. func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int
  4.  
  5. override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
  6. let cell = tableView.dequeueReusableCellWithIdentifier("myCell", forIndexPath: indexPath) as UITableViewCell
  7.  
  8. // Configure the cell...
  9. // add some UILabels or UIImageViews here.
  10.  
  11. return cell
  12. }
  13.  
  14. func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath)
  15.  
  16. self.navigationController?.presentViewController(myViewControllerToPresent, animated: true, completion: { () -> Void in
  17. // some code to do after the presentatioin is ready
  18. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement