I encountered a weird problem.
I have a UIViewController and embed it into Navigation controller,create a second VC and then programatically create a UIView and buttons in it.
Will call the first VC - mainVC and the second one buttonVC.
Buttons work just fine, but if you go back to the mainVC and then to the buttonVC again, pressing a button will result in an error.( unrec selector )
My View is public and I tried making the tap function public or class, but the same result.
The funny thing is that it will sometimes work, but most times it will not.
Occasionally it will throw a bad_exc_access instead…
Pretty simple setup tho
Let me know if you have any ideas