ios - UIButton above UITableView -
i have tableview in uiviewcontroller. tableview not iboutlet.
the uiviewcontroller has navigation bar due being pushed view.
i want add uibutton above tableview, buttons/views not appear above tableview if add them in storyboard or use "bringsubviewtofront" method.
i noticed buttons/vews appear behind navigation bar when translucent, of course not want them.
none of these codes have worked:
[self.view addsubview:btnsend];// add send btn [self.view bringsubviewtofront:btnsend];// bring send btn front [self.navigationcontroller.view addsubview:btnsend]; [self.navigationcontroller.view bringsubviewtofront:btnsend];
thanks in advance.
you need set edgesforextendedlayout
top not included
self.edgesforextendedlayout = uirectedgeleft | uirectedgebottom | uirectedgeright;
Comments
Post a Comment