For example, if you make UIButton it’ll go ‘buttonwithType:’ and then give you a list of options as you type.
How do i add to that list with my own types for a separate object, and how do i make it know if it’s a valid type for my object?
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.
UIButtonTypeis atypedefedenum:Creating a similar enum for some property of your class should clue Xcode in just fine; assuming the appropriate header is imported.