def searchBarTextDidBeginEditing_(sel, cmd, searchBar): s = ObjCInstance(sel) sb = ObjCInstance(searchBar) sb.becomeFirstResponder() sb.position = CGPoint(sb.position().x, (-sb.size().height) + 40) if s.resultController.firstRun: s.resultController.tableView().position = CGPoint( s.resultController.tableView().position().x, s.resultController.tableView().position().y - 40) s.resultController.firstRun = False
def searchBarTextDidBeginEditing_(sel, cmd, searchBar): s = ObjCInstance(sel) sb = ObjCInstance(searchBar) sb.becomeFirstResponder() sb.position = CGPoint(sb.position().x,sb.size().height*2-2)
def searchBarTextDidBeginEditing_(sel, cmd, searchBar): sb = ObjCInstance(searchBar) sb.becomeFirstResponder()