The following wraning message keep showing when inserting newline into scrollview in the corona simulator output:
WARNING: line.width is deprecated. Use line.strokeWidth
local scrollView = widget.newScrollView { id = "something", backgroundColor = {0,0,0,0}, top = 0, left = 0, width = display.contentWidth, height = display.contentHeight, horizontalScrollDisabled = true, isBounceEnabled = false, listener = nil } local newLine = display.newLine( scrollView, 0 , 0, 100, 100 ) newLine:setStrokeColor( 0 ) newLine.strokeWidth = 10 scrollView:insert(newLine)
The final line “scrollView:insert(newLine)” is producing the warning message.
The program still runs fine for now but who knows in future. Can anyone please look into this?