this code: let servicebonnen = [[1,2,3],[4,5,6],[7,8,9]] //not real data func tableview(tableview: uitableview, cellforrowatindexpath indexpath: nsindexpath) -> uitableviewcell { let cell = tableview.dequeuereusablecellwithidentifier("namecell", forindexpath: indexpath) cell.textlabel!.text = servicebonnen[section][indexpath.row] return cell } but gives me error @ "section" point in line of code: cell.textlabel!.text = servicebonnen[section][indexpath.row] does know why won't compile, , proper solution? you need use section indexpath : indexpath.section your line should this: cell.textlabel!.text = servicebonnen[indexpath.section][indexpath.row]
i have 2 objects (dates) {{vm.currentdate|date:'mediumdate'}} , {{vm.anotherdate|date:'mediumdate'}} how equal (if same) , value operation sent directive in button <button type="submit" ng-show="value_from_operation"></button> you check if equal this: +currentdate === +anotherdate
Comments
Post a Comment