Skip to content

Commit

Permalink
fix(ios): prevent deprecation warning
Browse files Browse the repository at this point in the history
Co-authored-by: Vijay Vikram Singh <vsingh@axway.com>
  • Loading branch information
2 people authored and sgtcoolguy committed Mar 10, 2021
1 parent 72068f4 commit d36b81b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion iphone/Classes/TiUITableViewRowProxy.m
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,9 @@ - (void)configureBackground:(UITableViewCell *)cell
}

[(TiUITableViewCell *)cell setBackgroundGradient_:[self valueForKey:@"backgroundGradient"]];
[(TiUITableViewCell *)cell setSelectedBackgroundGradient_:[self valueForKey:@"selectedBackgroundGradient"]];
if (IS_NULL_OR_NIL([self valueForKey:@"selectedBackgroundGradient"])) {
[(TiUITableViewCell *)cell setSelectedBackgroundGradient_:[self valueForKey:@"selectedBackgroundGradient"]];
}
[(TiUITableViewCell *)cell setBackgroundSelectedGradient_:[self valueForKey:@"backgroundSelectedGradient"]];

id bgImage = [self valueForKey:@"backgroundImage"];
Expand Down

0 comments on commit d36b81b

Please sign in to comment.