Reputation: 1695
I tried to make floating button on top of uitableview
, I already set uitableview
to back and the button is in the front on storyboard but when I run the application the table covering the button. How can I make the button to always on front?
Upvotes: 0
Views: 67
Reputation: 10959
Try to bring your subviews on top of tableview.
- (void)viewDidLoad {
[super viewDidLoad];
[self.view bringSubviewToFront:yourButton];
}
Upvotes: 1
Reputation: 192
Set autoresizing mask of your buttons from bottom then check. If buttons are not appearing then add this code to in your viewDidLoad
method -
[self.view bringSubViewToFront: btn_Cancel];
[self.view bringSubViewToFront: btn_Delete];
Upvotes: 0