How does one read/parse the NDEF Message from CoreNFC?

I have a bunch of tags that are URL tags that have the content "http://WEBSITE.com". Let's say WEBSITE is youtube so http://youtube.com. When I scan them on Android etc, it keeps the http or https.


I'm trying to scan these same tags using the Core NFC framework. I scan them and I get a bunch of bytes that I convert using NSSString initWithData with UTF8 Encoding. I get back \^Cyoutube.com. I want to get http://youtube.com.


How can I interept the payload to get what I need? If I'm to assume the http in front of the string, how am I supposed to know if it is http or https or even ftp?

This looks to be the URI identification code. You can read more about it here: https://learn.adafruit.com/adafruit-pn532-rfid-nfc/ndef

How does one read/parse the NDEF Message from CoreNFC?
 
 
Q