Skip to content

Commit

Permalink
Controller constatnts initieted
Browse files Browse the repository at this point in the history
  • Loading branch information
jogendra committed Mar 26, 2018
1 parent 6fa679b commit 628117b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Phimpme/Controllers/AccountsTableViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class AccountsTableViewController: UITableViewController {
}

override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "accountsCell", for: indexPath)
let cell = tableView.dequeueReusableCell(withIdentifier: ControllerConstants.accountsCellIdentifier, for: indexPath)
cell.textLabel?.text = accountsName[indexPath.row]
cell.imageView?.image = UIImage(named: accountsImagesName[indexPath.row])

Expand Down
5 changes: 5 additions & 0 deletions Phimpme/Helpers/ControllerConstants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@
//

import Foundation

class ControllerConstants {

static let accountsCellIdentifier: String = "accountsCell"
}

0 comments on commit 628117b

Please sign in to comment.