搜索框点击不弹出键盘

  • (BOOL)searchBarShouldBeginEditing:(UISearchBar *)searchBar{

    BrandsViewController* brandvc=[[BrandsViewController alloc]init];
    brandvc.hidesBottomBarWhenPushed = YES;
    [self.navigationController pushViewController:brandvc animated:YES];
    return NO;
    }

你可能感兴趣的:(搜索框点击不弹出键盘)