Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InfoTableViewCell - casts input to actorLabel #12

Open
Chulkyu opened this issue Dec 11, 2018 · 1 comment
Open

InfoTableViewCell - casts input to actorLabel #12

Chulkyu opened this issue Dec 11, 2018 · 1 comment

Comments

@Chulkyu
Copy link

Chulkyu commented Dec 11, 2018

can't convert to type of Array

@Chulkyu
Copy link
Author

Chulkyu commented Dec 12, 2018

var castStringArray: [String] = []
let num = model?.casts?.count ?? 0
for i in 0..<num {
let castString = model?.casts?[i].actor ?? ""
castStringArray.append(castString)
let castArray = castStringArray.joined()
cell.actorLabel.text = castArray
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant