Note blast in the teachers studio

The other day I was playing around with my app and trying to get a student to read notes on the staff. My app doesn’t have the ability to pick up the note as the student plays it but I just got the student play the note and I pressed the notes on the app to make the notes explode. The student got to learn how to play the notes and also got to blow up notes at the same time. 

Cannot invoke ‘sysctlbyname’ with an argument list of type ‘(String, nil, inout UInt, nil, Int)’

  func platform() -> String {
        var size : UInt = 0
        sysctlbyname(“hw.machine”, nil, &size, nil, 0)
        var machine = [CChar](count: Int(size), repeatedValue: 0)
        sysctlbyname(“hw.machine”, &machine, &size, nil, 0)
        return String.fromCString(machine)!

Custom navbar button segue adapted to swift