有时候一堆button一堆view,怎么直接定位到你想要的控件呢,今天找下能够用这个方法code
先给每一个控件设置tagit
而后经过tag定位,强转一下;class
(UIxxxxxx *)[self.view viewWithTag:tag值];