[WARN] Ti.selectedBackgroundGradient DEPRECATED in 10.0.0, in favor of Ti.backgroundSelectedGradient #12969
-
COMMUNITY QUESTION I found what causes the warning (on a createTableViewRow()). If i use either of these 2 properties (backgroundImage / backgroundSelectedImage) the warning is displayed. If both are disabled, the warning is not displayed. I would say there is some problem. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
It looks like this is coming from the below line in the configureBackground method of TableViewRowProxy. @garymathews, should the check be whether Test code is const win = Ti.UI.createWindow();
const row = Ti.UI.createTableViewRow({ backgroundImage: 'doesnt-need-to-exist.png' });
win.add(Ti.UI.createTableView({ data: [ row ] }));
win.open(); |
Beta Was this translation helpful? Give feedback.
-
This fix should be merged in the next Ti SDK |
Beta Was this translation helpful? Give feedback.
It looks like this is coming from the below line in the configureBackground method of TableViewRowProxy. @garymathews, should the check be whether
if (!IS_NULL_OR_NIL([self valueForKey:@"selectedBackgroundGradient"])) {
?https://github.com/appcelerator/titanium_mobile/blob/ed0fbbb7a595c64dbcf79f4138433a17116a0dd9/iphone/Classes/TiUITableViewRowProxy.m#L410-L412
Test code is