I would like to know how to add a userInfo object, or any NSDictionary, to a UIAlertView?
Thank you.
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.
If you are on > iOS 4.0 (for blocks) and you only want one or two buttons, you could use this category I made:
https://github.com/rsaunders100/UIAlertView-Blocks
It bypasses the need to add user info since you put your click handeling function straight into the alert. e.g.