xcode - iOS Swift Error - Objective C method ... provided by method -
what error mean? code compiled fine previous week. noticed when change func parser
func something
, there no compilation errors, method, obviously, not work @ runtime , shows no output.
any ideas?
**error :** objective-c method 'parser:didstartelement:namespaceuri:qualifiedname:attributes:' provided method 'parser(_:didstartelement:namespaceuri:qualifiedname:attributes:)' conflicts optional requirement method 'parser(_:didstartelement:namespaceuri:qualifiedname:attributes:)' in protocol 'nsxmlparserdelegate'
if @ docs or headers, see how declare method:
func parser(parser: nsxmlparser, didstartelement elementname: string, namespaceuri namespaceuri: string?, qualifiedname qualifiedname: string?, attributes attributedict: [nsobject : anyobject])
as can see, types different types using. need fix yours match these exactly.
Comments
Post a Comment