Ega Setya Putra
Ega Setya Putra

Reputation: 1695

UITableview covering button

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?

Here is the screenshot: enter image description here

Upvotes: 0

Views: 67

Answers (2)

KDeogharkar
KDeogharkar

Reputation: 10959

Try to bring your subviews on top of tableview.

- (void)viewDidLoad {

    [super viewDidLoad];
    [self.view bringSubviewToFront:yourButton];
}

Upvotes: 1

psk
psk

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

Related Questions