ios - Cannot edit search bar width and x y coordinate in `UITableViewController` -
i useing swreveal slide menu want add search bar in it. however, search bar has been covered parent view.
slide_areawidth = self.revealviewcontroller().rightviewrevealwidth searchbar = uisearchbar(frame: cgrectmake(300, 0, 60, 64)) var searchdisplaycontroller: uisearchdisplaycontroller = uisearchdisplaycontroller() searchdisplaycontroller = uisearchdisplaycontroller(searchbar: searchbar, contentscontroller: self) //searchdisplaycontroller.delegate = self searchdisplaycontroller.searchresultsdatasource = self self.tableview.tableheaderview = searchbar self.tableview.tableheaderview!.frame = cgrectmake(300, 0, 60, 64);
there simple way can solve issue can find in swrevealviewcontroller.m
swift: self.revealviewcontroller().rightviewrevealoverdraw = 0
Comments
Post a Comment