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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -