ios - How to send and receive data in game center ? -


i have used easy-game-center repository game center , facing issue in packet.swift file while convert swift 3.0 https://github.com/yannicksteph/easy-game-center-swift

facing error :

1) in unsafe pointer (ambiguous use of init)

let metadata = data(         bytes: unsafepointer<uint8>(&archivedpacket),         count: sizeof(archivedpacket)     )  

2) facing issue in nsmakerange

 var archivedpacket = archivedpacket(index: 0, numberofpackets: 0, namelength: 0)   let archivedstructlength = memorylayout<archivedpacket>.size  data.subdata(in: nsmakerange(0, archivedstructlength)) 


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -