I am trying to use the picker wheel widget with Director and not getting the results I expect.
I create a new picker wheel as follows:
local mydata = { data = { "val1", "val2", "val3", "val4", "val5", "val6", "val7" }, width = 100 }
local myPicker = widget.newPickerWheel{ column1=mydata }
myPicker.y = display.contentHeight - myPicker.height
myPicker.x = 0
localGroup:insert(mydata) --this line makes the data and error appear
localGroup:insert(myPicker.view)
If I leave out the localGroup:insert(mydata)
line, I get an empty picker wheel but no errors. If I include that line, I see the data in the wheel but I get this error from Director: “Director ERROR: Failed to execute new(params) function on ‘settings’.”
Any advice on the correct way to use this widget with Director? [import]uid: 52748 topic_id: 14758 reply_id: 314758[/import]