Hi.
I’ve updated my app to the last public release (I wore several months without updating).
My first action was disable v2 graphics.
application = { content = { graphicsCompatibility = 1, ...
In various scenes of my app, I’ve a segmentedControl. In Corona Emulator I don’t have any problem but when I run my app in my tablet (Android 4.0.4) it show a error message when try to create the segmentedControl. The error ocurrs in widget code, check the next lines (.
-- Create the labels local label if \_widget.isSeven() then label = display.newText( segmentedControl, segments[i], 0, 0, opt.labelFont, opt.labelSize ) if view.\_segmentNumber == i or opt.defaultSegment == i then label:setFillColor( unpack( view.\_labelColor.over ) ) else label:setFillColor( unpack( view.\_labelColor.default ) ) end else label = display.newEmbossedText( segmentedControl, segments[i], 0, 0, opt.labelFont, opt.labelSize ) label:setFillColor( unpack( whiteColor ) ) end
The error ocurrs in “else” part of isSeven control structure when it execute “setFillColor” method to the embossedText.
The error message is “attempt to call method ‘setFillColor’ (a nil value)”.
I’ve observed that the same error occurs in others parts of widget, ever when setFillColor is executed in a embossedText object.
With the code of widget I can solve replacing “setFillColor” with “setTextColor” but I don’t understand why occur this errors.