ios - Is implementing the UITableViewDataSource protocol required for table functionality -


ive created class declaration

class lessondetailsviewcontroller: uiviewcontroller { @iboutlet var detailstable: uitableview!

i can populate contents in table , provide operations implementing proper tableview functions.

but did not implement uitableviewdatasource protocol these functions defined. can please explain me key concept i'm missing makes possible? how ios know call these methods of class doesn't implement uitableviewdatasource protocol?

you must need implement required method of uitableview datasource , delegate method.

  • (nsinteger)numberofsectionsintableview:(uitableview *)tableview
  • (uitableviewcell *)tableview:(uitableview *)tableview cellforrowatindexpath:(nsindexpath *)indexpath

Comments

Popular posts from this blog

tcpdump - How to check if server received packet (acknowledged) -