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

Problem converting JSONValue to AnyObject #44

Closed
k06a opened this issue Aug 30, 2014 · 3 comments
Closed

Problem converting JSONValue to AnyObject #44

k06a opened this issue Aug 30, 2014 · 3 comments

Comments

@k06a
Copy link
Contributor

k06a commented Aug 30, 2014

I am trying to achieve this:

func tableView(tableView: UITableView!, didSelectRowAtIndexPath indexPath: NSIndexPath!) {
    let place = places![indexPath.row]
    self.performSegueWithIdentifier("segue_order", sender: place)
}

I am getting error:

Type 'JSONValue' does not conform to protocol 'AnyObject'
@k06a
Copy link
Contributor Author

k06a commented Aug 30, 2014

This looks like common problem converting enum to AnyObject

@wvteijlingen
Copy link

I don't think this is an issue with SwiftyJSON. AnyObject can only be used for instances of a class types. The referenced pull request would be a workaround for this 'problem', but it's not a problem with the library per se.

@k06a
Copy link
Contributor Author

k06a commented Sep 12, 2014

Ok, this problem helps me to found smth I can contribute to this awesome library :)

@k06a k06a closed this as completed Sep 12, 2014
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

2 participants