Getting selected Item of WKInterfacePicker

I am trying to use a

WKInterfacePicker
to select a string from a list. As of now, I am using an
IBAction
function and am updating a variable that stores the value for the picker. The variable, however, does not get updated if I spin the digital crown too quickly, even though the selected element in the picker differs from the value of the variable. Additionally, the selected element when the view is first loaded, sometimes differs from the initial value of the variable (e.g. 0 is selected in the picker, but the value of the variable is 2). I believe that my
IBOutlets
and
IBActions
are wired up correctly in IB. Is this a bug in the beta software, or am I using the
WKInterfacePicker
incorrectly? Here is the code for the
WKInterfaceController
:
import WatchKit
import Foundation

class InterfaceController: WKInterfaceController {
    @IBOutlet var itemPicker:WKInterfacePicker?
    var pickerVal = 0


    override func awakeWithContext(context: AnyObject?) {
        super.awakeWithContext(context)      


        var itemArr = [WKPickerItem]()


        for n in 0...5 {
            let k = WKPickerItem()
            k.title = String(n)
            itemArr.append(k)
        }


        itemPicker?.setItems(itemArr)

        itemPicker?.setEnabled(false)
    }


    override func willActivate() {
    // This method is called when watch view controller is about to be visible to user
        super.willActivate()
        itemPicker?.setSelectedItemIndex(0)

        itemPicker?.setEnabled(true)
    }


    override func didDeactivate() {
        // This method is called when watch view controller is no longer visible
        super.didDeactivate()
    }


    @IBAction func itemPickerUpdated(index: Int) {
        pickerVal = index
    }
}

I have exactly the same problem with you

I have the same issue. When I want try to increase the value of my 4 pickers some of this pickers increase and the other not, after a second try the working and not working pickers change. It's really random ....

Getting selected Item of WKInterfacePicker
 
 
Q