[self.addressToolBar setBackgroundImage:[UIImage new] forToolbarPosition:UIBarPositionAny barMetrics:UIBarMetricsDefault];
[self.addressToolBar setShadowImage:[UIImage new] forToolbarPosition:UIToolbarPositionAny];
但是还有条线,不过也先记录着
补充:
出现线的解决办法:
toolbar.clipsToBounds = YES;