Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
为什么我没有看到 addTarget 方法:
[button addTarget:(id) action:(SEL) forControlEvents:(UIControlEvents)]
关于 UIButton 类参考文档:
http://developer.apple.com/library/ios/#documentation/uikit/reference/UIButton_Class/UIButton/UIButton.html
它是 UIControl 的继承方法