We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I try to add your example in my code I have
let cellDescriptor = cellDescriptors[indexPath.section][indexOfVisibleRow] as! [String: AnyObject]
Ambiguous use of 'subscript'
How can I fix this?
The text was updated successfully, but these errors were encountered:
Same Here...Xcode 7.3.1
Sorry, something went wrong.
You can fix this error by splitting the expression and casting each subscript to appropriate type, like this:
let array = cellDescriptors[indexPath.section] as! NSArray let dict = array[indexOfVisibleRows] as! NSDictionary
Here dict is your dictionary of type (String: AnyObject)
dict
(String: AnyObject)
Swift is a strongly typed language and that is why you are getting this error
No branches or pull requests
When I try to add your example in my code I have
let cellDescriptor = cellDescriptors[indexPath.section][indexOfVisibleRow] as! [String: AnyObject]
Ambiguous use of 'subscript'
How can I fix this?
The text was updated successfully, but these errors were encountered: