是否可以为@selector一个UIButton?中的参数传递一个Objective-C块?即,有没有办法让以下工作?
[closeOverlayButton addTarget:self
action:^ {[anotherIvarLocalToThisMethod removeFromSuperview];}
forControlEvents:UIControlEventTouchUpInside];
Run Code Online (Sandbox Code Playgroud)
谢谢