, 100% (, 320 x 40 ) 4 UIImageView. , . , , , , :
UIImageView* bottomShadow = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"BottmShadow.png"]]
bottomShadow.transform = CGAffineTransformMakeScale(1, -1);
( )
, . :
CGRect tableTopShadowFrame = tableTopShadow.frame;
tableTopShadowFrame.origin.y = -(tableTopShadowFrame.size.height);
[tableTopShadow setFrame:tableTopShadowFrame];
( . , , ).
Finally, you need to set the backgroundColor property of the table to transparent.
tableView.backgroundColor = [UIColor clearColor];
and maybe set some dark gray color of the main background image.
source
share