Statistics buttons where users clicked
There is a demand when I at an interview. Get the infomation and current ViewController where the button has been clicked. So I write this demo to note this tips. Take it away if you needed :)
前些天面试的时候碰到的一个需求. 统计按钮点击时,获取当前按钮所在的ViewController以及按钮的相关信息。 所以写了个简单的Demo记录一下。 有需要的朋友欢迎拿走。