UIView添加事件

  UIView *loadView = [[UIControl alloc]initWithFrame:CGRectMake(0,0,320,480)];

  loadView.backgroundColor = [UIColor clearColor];

   [(UIControl *)loadView addTarget:self action:@selector(removeLoadView1)forControlEvents:UIControlEventTouchUpInside];

 

你可能感兴趣的:(UIView)