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 -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -