设置前后的效果图 [searchBar setBackGroundImage:[UIImage new]]; 转载于:https://www.cnblogs.com/chenyanliang/p/7591653.html