In the following code example, I want to be able to call backgroundTap from another function btnSubmitLoginPassword. What parameter should I pass?
-(IBAction) backgroundTap:(id)sender{
[userName resignFirstResponder];
[password resignFirstResponder];
}
-(IBAction) btnSubmitLoginPassword{
[self backGroundTap:?????????]
[self validate];
}
PengOne’s answer is good, but the precise answer to your question is: pass
nilfor the sender parameter: