Commit 3df4bb5b authored by Tobias's avatar Tobias Committed by Felix Paul Kühne

fix gradient drawing in table

parent 20aed873
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x",
"filename" : "playback-gradient.png"
},
{
"idiom" : "universal",
"scale" : "2x",
"filename" : "playback-gradient@2x.png"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
......@@ -115,10 +115,10 @@
[backgroundImage drawInRect:CGRectMake(0,0,newSize.width,newSize.height)];
else {
[[UIColor darkGrayColor] set];
UIRectFill(CGRectMake(.0, .0, newSize.width, newSize.height));
UIRectFill(CGRectMake(0., 0., newSize.width, newSize.height));
}
[gradient drawInRect:CGRectMake(.0, newSize.height / 2., newSize.width, newSize.height / 2.) blendMode:kCGBlendModeNormal alpha:1.];
[gradient drawInRect:CGRectMake(0., 0., newSize.width, newSize.height / 2.) blendMode:kCGBlendModeNormal alpha:1.];
UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment