swift - iOS Table Views -


using thetable views, added label first cell, tried drag view controller ad code, didn't work. (still new programming)

this that's in view controller now.

import uikit  class viewcontroller: uiviewcontroller, uitableviewdatasource, uitableviewdelegate {       override func viewdidload() {         super.viewdidload()         // additional setup after loading view, typically nib.     }      override func didreceivememorywarning() {         super.didreceivememorywarning()         // dispose of resources can recreated.     }      func tableview(_ tableview: uitableview, numberofrowsinsection section: int) -> int {         return 3     }      func tableview(_tableview:uitableview, cellforrowatindexpath index, path: nsindexpath) -> uitableviewcell{         return     } } 

also this, "parameter requires explicit type error

func tableview(_tableview:uitableview, cellforrowatindexpath index, path: nsindexpath) -> uitableviewcell {     return } 

provide class view controller , have return uitableviewcell. once class provided select lable , drag file.


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - IE9 error '$'is not defined -