标签:class blog http java tar color
给View添加点击事件
UIView *view = [[UIControl alloc]init]; view.backgroundColor = [UIColor redColor]; [(UIControl *)view addTarget:self action:@selector(touchpicture:) forControlEvents:UIControlEventTouchUpInside]; [view setFrame:CGRectMake(0, 0, 320, 480)]; [self.view addSubview:view];
标签:class blog http java tar color
原文地址:http://www.cnblogs.com/hl666/p/3809808.html