button freeze

when i press on button that shows another vc that contains search bar the button freeze for 2 sec then redirect me to the view controller and this happens for the first time only I tired to hash my logic and keeps only the search bar but nothing worked just when I delete the search bar everything goes right

Could you show the code:

  • of the originating VC (VC1)
  • of the destination VC (VC2 with the search bar)

Also show how you defined the segue from VC1 to VC2

button freeze
 
 
Q