IOSselector注意事项:@selector(showAlertView:)

1、@selector(showAlertView:)

——带冒号的,表示带参数。其行为对应如下形式:

-(void)showAlertView:(id)sender

{

}

2、@selector(showAlertView)

——没有冒号,表示无参数。其行为对应如下形式:

-(void)showAlertView

{

}

原文地址:https://www.cnblogs.com/tx8899/p/2563251.html