IOS-selector注意事项:@selector(showAlertView:)

1、@selector(showAlertView:)

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

-(void)showAlertView:(id)sender

{

}

2、@selector(showAlertView)

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

-(void)showAlertView

{

}

posted on 2012-06-26 10:31  tx天翔  阅读(215)  评论(0编辑  收藏  举报