I\'m trying to create a simple tableView programmatically using swift, so I wrote this code on \"AppDelegate.swift\" :
func application(application: UIA
It is as simple as writing a function
func tableView(tableView: UITableView!, cellForRowAtIndexPath indexPath: NSIndexPath!) -> UITableViewCell!
{
let cell: UITableViewCell = UITableViewCell(style: UITableViewCellStyle.Subtitle, reuseIdentifier: "MyTestCell")
cell.text = self.Myarray[indexPath.row]
cell.textLabel.textColor = UIColor.greenColor()
cell.detailTextLabel.text = "DummyData #\(indexPath.row)"
cell.detailTextLabel.textColor = UIColor.redColor()
cell.imageView.image = UIImage(named:"123.png")
return cell
}