Vanya Vanya - 1 year ago 199
Swift Question

Using CFArrayGetValueAtIndex in Swift with UnsafePointer (AUPreset)

My problem is simple, but tricky. I want to write this line

AUPreset *aPreset = (AUPreset*)CFArrayGetValueAtIndex(mEQPresetsArray, indexPath.row);

in Swift. The trick is that the return value is

Answer Source

Have you tried this?:

    let aPreset = UnsafePointer<AUPreset>(CFArrayGetValueAtIndex(mEQPresetsArray, indexPath.row))
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download