UIControl

来源:互联网 发布:av小次郎 最新域名 编辑:程序博客网 时间:2024/05/07 01:16

//  .........

    UIControl *control = [[UIControl alloc]initWithFrame:CGRectMake(00320460)];

    

    [control addTarget:self action:@selector(touch)forControlEvents:UIControlEventTouchUpInside];

    

    [self.view addSubview:control];

    //放到view的最底层

    [self.view sendSubviewToBack:control];

    [control release];

    

}


- (void)touch

{

    [tv resignFirstResponder];

    [tf resignFirstResponder];

}

原创粉丝点击