我必须自定义 UIViewController 并使用以下代码自定义底部的 UIViewController 工具栏
[self.navigationController.toolbar setBackgroundImage:[UIImage imageWithCGImage:[UIImage imageNamed:@"List/footer.png"].CGImage scale:2 orientation:UIImageOrientationDown] forToolbarPosition:UIToolbarPositionAny barMetrics:UIBarMetricsDefault];
[self.navigationController.toolbar setShadowImage:[UIImage imageNamed:@"transparent.png"] forToolbarPosition:UIToolbarPositionAny];
[self.navigationController.toolbar setBackgroundColor:[UIColor clearColor]];
从截图中可以明显看出,自定义工具栏下方有一个白色像素。如何去除像素?