uitableview - TableView extension swift 2 image hidden -


i using swift 2 xcode 7.2 in extension. rendering uitableview cells have image , label in problem image hidden ! idn't know why! can me please

    override func tableview(tableview: uitableview, cellforrowatindexpath indexpath: nsindexpath) -> uitableviewcell {      let cell = tableview.dequeuereusablecellwithidentifier("cell", forindexpath: indexpath) uitableviewcell     cell.textlabel!.textcolor = uicolor.whitecolor()       let query = pfquery(classname:"recipe")     query.orderbydescending("createdat")     query.findobjectsinbackgroundwithblock {         (objects: [pfobject]?, error: nserror?) -> void in         if error == nil {             print("success retrieved \(objects!.count) scores.")             if let objects = objects {                 object in objects {                     let a:string = object.objectforkey("title") as! string                      self.contentstring.append(a)                 }             }             let cellimg : uiimageview = uiimageview(frame: cgrectmake(5, 5, 50, 50))             cellimg.backgroundcolor=uicolor.whitecolor()            cellimg.image = uiimage(named: "jj.png")           //  cell.addsubview(cellimg)          cell.imageview!.image=cellimg.image         cell.textlabel!.text = self.contentstring[indexpath.row]         }}     return cell } 


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -