iphone - How can I send a PLIST through bluetooth? -


possible duplicate:
how send nsdictionary (or plist file) nsdata using gamekit bluetooth?

i'm looking simple way send plist file, or nsdictionary through bluetooth 1 device running app another.

how convert plist file nsdata (which can sent through bluetooth) , convert later?

(i'd appreciate if can me started code.)

please see answer found here: https://stackoverflow.com/questions/4107004/how-to-send-an-nsdictionary-or-plist-file-as-nsdata-using-gamekit-bluetooth


you can use following transform plist nsdata:

`+ (nsdata *)datawithpropertylist:(id)plist format:(nspropertylistformat)format options:(nspropertylistwriteoptions)opt error:(nserror **)error` 

and transform nsdata plist:

+ (id)propertylistwithdata:(nsdata *)data options:(nspropertylistreadoptions)opt format:(nspropertylistformat *)format error:(nserror **)error 

of nspropertylistserialization class

format nspropertylistbinaryformat_v1_0 use lowest byte count


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -