-(void)displayNameBy:(NSString*)name{
mylable.text = name;
}
i want call this method using @selector keywords.
eg:
Have an intermediate method. like:
{
...
[MyButton addTarget:self action:@selector(displayName) forControlEvents:UIControlEventTouchUpInside];
...
}
-(void) displayName
{
[self performSelector:@selector(displayNameBy:) withObject:@"name"];
}
-(void)displayNameBy:(NSString*)name{
mylable.text = name;
}