[backImageView setUserInteractionEnabled:YES];//使添加其上的button有点击事件

  

  

   

  

  

  

   [loginButton addTarget:self action:@selector(loginOrLogout) forControlEvents:UIControlEventTouchUpInside];

   [backImageView addSubview:loginButton];