You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FUISwitch and UIColor return "shades of grey" with blendedColorWithForegroundColor in iOS7.1 - ON & OFF Foreground/Background colors return a blend of onWhite and offWhite. This is the section of code that prior to iOS7.1 did not appear to work or not sure of the purpose! Now it does in 7.1 - it returns shades of grey! Any suggestions on a fix for this - other than taking out the if{}'s?
The text was updated successfully, but these errors were encountered:
ngaje
changed the title
UIColor blendedColorWithForegroundColor returns grey colors with iOS7.1
UIColor blendedColorWithForegroundColor Bug with iOS7.1
Mar 17, 2014
FUISwitch and UIColor return "shades of grey" with blendedColorWithForegroundColor in iOS7.1 - ON & OFF Foreground/Background colors return a blend of onWhite and offWhite. This is the section of code that prior to iOS7.1 did not appear to work or not sure of the purpose! Now it does in 7.1 - it returns shades of grey! Any suggestions on a fix for this - other than taking out the if{}'s?
if ([foregroundColor getWhite:&onWhite alpha:nil])
{
onRed = onWhite;
onBlue = onWhite;
onGreen = onWhite;
}
else
{
[foregroundColor getRed:&onRed green:&onGreen blue:&onBlue alpha:nil];
}
if ([backgroundColor getWhite:&offWhite alpha:nil])
{
offRed = offWhite;
offBlue = offWhite;
offGreen = offWhite;
}
else
{
[backgroundColor getRed:&offRed green:&offGreen blue:&offBlue alpha:nil];
}
The text was updated successfully, but these errors were encountered: