Timo Cengiz
Timo Cengiz

Reputation: 3417

Using Slider Removes UITableView actions like button pressing or scrolling

Link to download XCODE project to better understand what is happening: https://ufile.io/qcwxd

NOTE: I used Cocoa pods to install LCSliderMenu so open the right workspace.

Problem:

Start the project and see how the table works, try clicking the buttons.

When you are done Navigate to ViewController.swift and then to ViewDidLoad then uncomment the function example() Now run the project again and see how the table is non-responsive.

Obviously i am thinking that the slider takes over the whole gesture recogniser for the tableView also the action for the buttons. Any ideas on how to fix this?

Upvotes: 0

Views: 20

Answers (1)

Shehata Gamal
Shehata Gamal

Reputation: 100503

Actually the side menus are covering the table , try this

 view.addSubview(slideMenu)
 view.insertSubview(slideMenu, belowSubview: self.tableView)

Upvotes: 1

Related Questions