> XMLParser’s delegate is unowned, so it’s being deallocated when you exit the > current scope. Hold on to it with a strong reference: > > let delegate = ParserDelegate() > xmlParser.delegate = delegate
Wow! Need to brush-up my understanding of Swift ‘pointers’ Thank you.
_______________________________________________ swift-users mailing list swift-users@swift.org https://lists.swift.org/mailman/listinfo/swift-users