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

sql - can we replace full join with union of left and right join? why not? -

javascript - Parallax scrolling and fixed footer code causing width issues -

iOS: Performance of reloading UIImage(name:...) -