ios - UITableView and UITableViewCell from XIB bug? -


After

I'am UITableView with UITableViewCell Trying> .xib Programmatically but I do not know what I'm doing wrong I've read some tutorials and it seems that I'm doing everything right, but it does not work. People can help me

How I'am Loading UITableView and Cell

  Import Foundation Import UIKit Class GamesViewController: UIViewController, UITableViewDelegate, UITableViewDataSource {var GameTableView: UITableView? ; Override funk viewDidload () {gameTableView = UITableView (frame: self.view.frame, style: UITableViewStyle.Plain); GameTableView !. Delegate = self; GameTableView! .dataSource = self; GameTableView! Var nib = UINib (nickname: "Taskellview", bundle: zero); GameTableView !. RegiststerNib (nib, forCellReuseIdentifier: "cell"); Self.view.addSubview (gameTableView); Super.viewDidLoad (); } Override funk received Rasiv Memorial Warning () {Super DID Rescue Memory Warning (); } Festival tableView (tableView: UITableView!, DidSelectRowAtIndexPath indexPath: NSIndexPath!) {} Festival tableView (tableView: UITableView!, NumberOfRowsInSection section: int) - & gt; Int {Return 4} Fan Table View (Tableview: UITABLE WEVE !, SALFARROAUTENDAPEP INDEXPath: NSINDPax!) - & gt; UITableViewCell! {Cell = table view. As DEEQUEReusableCellWithIdentifier ("cell")? TaskCell; Cell!. TaskSkillLabel.text = "sdfsdf"; Return cell; }}   

And this is my custom view cell

  Import Foundation Import UIKit Class TaskCell: UITableViewCell {@IBOptlet on taskSkillLabel: UILabel; Init (style: UITableViewCellStyle, reuseIdentifier: string) {super.init (style: UITableViewCellStyle.Default, reuseIdentifier: reuseIdentifier); }}   

I can not post images but I end up with my cells with each other .. And weird artworks also work similarly to sample and situation very similar Download someone's code with

 
  itemprop = "text"> 

add addition to

  function table view (table view: UITableView !, HeightForrendindapap Index: NSIndexPath!) - & gt; CGFloat {return ATLEAST_YOUR_CELL_HIGHT}    

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -