Before I installed Xcode 8 and converted project to Swift 3, the following line was fine. Now after conversion it looks like this:
let valueData:Data = Data(bytes: UnsafePointer<UInt8>(&intVal), count: sizeof(NSInteger))
it shows the error
Ambiguous use of 'init'
what is wrong with it in Swift 3? How to fix it?