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
Post a Comment