Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Int is not convertible to 'Range<Int>'

@IBAction func upVoteButtonPressed(sender: AnyObject) {

        groupVote[voteScoreLabel.tag]=groupVote[voteScoreLabel.tag].toInt()
    }

I have a custom tableview view cell, which contains a button (upVoteButtonPressed) and a label (voteScoreLabel). In order to get the numerical scores to show up in the labels of the UITableView, the array that contains that is a String array. The tag of the label has been set in the tableview controller to be the same as the indexPath.row. However when I want to add a specific value, add 1 for example, I cannot because when I try to execute the code above I get the following error: Int is not convertible to 'Range<Int>'. What does this mean and how can I fix it. Stone Preston