Skip to content

[WARN] Ti.selectedBackgroundGradient DEPRECATED in 10.0.0, in favor of Ti.backgroundSelectedGradient #12969

Answered by ewanharris
caspahouzer asked this question in Q&A
Discussion options

You must be logged in to vote

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

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();

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@nicolomonili
Comment options

Answer selected by ewanharris
Comment options

You must be logged in to vote
1 reply
@ewanharris
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants