If I have some code like below, and I use return, what is really being returned? Is this assuming self? Or Void or what?
if (actSheet) {
[actSheet dismissWithClickedButtonIndex:-1 animated:YES];
return;
}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It means that at this point the function exits. It is allowed in void functions. e.g. it does not return any value.