Commit 93bb61b8 authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

optimize table view gradient drawing

parent b3ec6b6b
{
"images" : [
{
"idiom" : "iphone",
"scale" : "1x",
"filename" : "gradient-cell-ios7.png"
},
{
"idiom" : "iphone",
"scale" : "2x",
"filename" : "gradient-cell-ios7@2x.png"
},
{
"idiom" : "iphone",
"scale" : "3x"
},
{
"idiom" : "ipad",
"scale" : "1x",
"filename" : "gradient-cell-ios7-ipad.png"
},
{
"idiom" : "ipad",
"scale" : "2x",
"filename" : "gradient-cell-ios7-ipad@2x.png"
},
{
"idiom" : "watch",
"scale" : "2x",
"filename" : "gradient-cell-ios7@2x-1.png"
},
{
"idiom" : "watch",
"screenWidth" : "{130,145}",
"filename" : "gradient-cell-ios7@2x-2.png",
"scale" : "2x"
},
{
"idiom" : "watch",
"screenWidth" : "{146,165}",
"filename" : "gradient-cell-ios7@2x-3.png",
"scale" : "2x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x",
"filename" : "tableview-gradient.png"
},
{
"idiom" : "universal",
"scale" : "2x",
"filename" : "tableview-gradient@2x.png"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
......@@ -193,7 +193,7 @@ typedef enum {
- (UIImage *)generateBackgroundImageWithGradient:(UIImage *)backgroundImage {
UIImage *gradient = [UIImage imageNamed:@"gradient-cell-ios7"];
UIImage *gradient = [UIImage imageNamed:@"tableview-gradient"];
CGSize newSize = backgroundImage ? backgroundImage.size : CGSizeMake(260, 120);
UIGraphicsBeginImageContext(newSize);
......
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