I have an UIButton that I want to bring up a UIAlertView the first time it is tapped (with instructions). What’s the best way to do that? A toggle?
Thanks!
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.
I’d set an instance variable like
tappedFirstTimetoYESin-(void)viewDidLoador wherever. And in yourIBActionconnected to your button, you can check for that variable and ifYESyou make itNO.