What does the (void)sender;
do in following code? I am not able to understand what the use of that expression is.
- (IBAction)signIn:(id)sender {
(void)sender;
[self dismissKeyboardIfNeeded];
}
What does the (void)sender;
do in following code? I am not able to understand what the use of that expression is.
- (IBAction)signIn:(id)sender {
(void)sender;
[self dismissKeyboardIfNeeded];
}
It's one way of letting the compiler know that the sender
parameter is not used in the method.