Reputation: 597
I need to add floating button on top of UITableViewController.
The following link is used for adding FloatingButton action on top of UIViewController
Creating a floating menu in an iOS application
I already tried to add this floating button to my UITableViewController but it is not visible.
please help me thank you inadvance
Upvotes: 9
Views: 20957
Reputation: 656
Floating Action button on IOS can be created with way more easier way:
Connect your button to your class and set its corner raidius to 25
yourButton.layer.cornerRadius = 25
There you have your Fab button.
Upvotes: -3
Reputation: 1935
See that button constraints are related to superview. This is important if you want the Floating Button.
If everything is done correctly it would show like this:
Upvotes: 20