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
i'm having problem, page search products, has getting worse last time. wants display me products can delivered country - still want see of them. have check domins product manually (.com .ca .co.uk etc etc). want build small tool me. i have tried php way: $html=file_get_contents('https://www.ebay.com/sch/i.html?_ipg=200&_from=r40&_sacat=0&_nkw=book&_sop=10'); $dom = new domdocument(); @$dom->loadhtml(mb_convert_encoding($html,"utf8",mb_detect_encoding($html))); $x = new domxpath($dom); foreach($x->query("//li") $node){ $ignore=0; $itemid= $node->getattribute("listingid"); if($itemid >0){ //if (in_array($itemid,$itemsindb)){ echo "itemid=".$itemid."//////text: "; echo $node->nodevalue; echo "<br>"; } but problem is, nodevalue seems missing html tags, since ouput looks this: itemid=322582462268//////text: new listing wind in willows, grahame arthur ra...
Comments
Post a Comment