// starting my code
int col=10;
UIButton*mbybutton = [UIButton buttonWithType:UIButtonTypeCustom];
[mbybutton setTitle:@"Click Here" forState:UIControlStateNormal];
//-------------------
[self performSelector:@selector(fullscreen:)
withObject:[NSNumber numberWithInt:col]
afterDelay:0.2];
//----------------------------
-(void) displayvalue:(id)iid{
int c=[iid intValue];
printf("\n\n ======= %d========",c);
}
// end of code
在这段代码中,我的问题是这些代码将 afterDelay:0.2 替换为 forControlEvents:UIControlEventTouchUpInside (在 mybutton 的偶数上),并在 touchupinside 时在 displayvalue 方法中获取 col 的值,请纠正这些错误..