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.

enter image description here

    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

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -