搜索框优化
1、可以设置光标颜色2、圆弧状搜索框,弧度可根据需求调整3、直接在导航栏上面添加,通过block回调关键字进行搜索4、简单调用:一行代码搞定//只需要在控制器中使用下面一行代码即可设置:SearchView *searchView = [[SearchView alloc] initWithFrame:CGRectMake(0,0,279,30)];//设置光标颜色searchView.tintColor = [UIColor redColor];// 设置placholdersearchView. placholder = @"请输入搜索关键字"];代码简单可拓展,希望对你有用,感谢朋友们给出宝贵意见,谢谢!