Home 4 › Forums › Tutorial Help › iOS and tvOS Video Tutorial Help › Mazes Games › I have found a Bug in the Parser function in the GameScene class
This topic contains 1 reply, has 1 voice, and was last updated by Jimmy Wilson 2 years, 6 months ago.
I am using Xcode 7.3 and the function
func parser(parser: NSXMLParser!, didStartElement elementName: String!, namespaceURI: String!, qualifiedName qName: String!, attributes attributeDict: [NSObject : AnyObject]!)
I am not very proficient in Xcode so far but it looks like the attributes dictionary is no longer part of the call. If I removed that then the function error disappears, but then the code doesn’t work as it needs the dictionary inside the function.
Hope you can help me
Should have tried harder before posting on here. I changed the
attributes attributeDict: [NSObject : AnyObject]! on the function to
attributes attributeDict: [String : String]! and the error disappeared.
A couple of small tweaks within the function to reflect the fact that we now had strings in the dictionary and Bingo we are up and running again.
You must be logged in to reply to this topic.
Become part of the CartoonSmart Team with our Affiliate Program
Make recurring money when you refer a subscriber. 30 day tracking. Commissions 33%-50%!
Uh oh, missing your affiliate ID. Create one real quick