Uibutton events
Posted
by Raju
on Stack Overflow
See other posts from Stack Overflow
or by Raju
Published on 2009-06-05T04:33:37Z
Indexed on
2010/04/14
23:03 UTC
Read the original article
Hit count: 386
uibutton
//My Button code --------------------------------------------------------------------------------------------------- UIButton *ticketButtonObj=[[ticketButton alloc]initWithFrame:CGRectMake(0.0f, 115.0f, 500.0f, 40.0f) ; int col=10;
[ticketButtonObj addTarget:self action:@selector(ShowNumber:) forControlEvents:UIControlEventTouchUpInside];
[self.window addSubview:ticketButtonObj];
-(void) ShowNumber:(id)sender{
// here i want to get the Value of Col
}
in the above code when i pressed the button.. i want print the value of col variable in ShowNumber method .. how it is ?
pls Help me ...
thanks and regards... by raju
© Stack Overflow or respective owner