I have designed a button in my nib file. Its initial text is defined as “Not Click” but when program will run and user will click on button it should say “clicked”. How will I change text of button.
Share
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.
When user click on button, you would be receiving the touch event in event method.
You will receive Touch event only if you define action or bind action to that button. so bind this method to your Button touchUpInside event.
First write below code in your .h File.
Then Write below method in .m file.
Sorry, I edit this answer. Ajay seems at very basic level and I guess he is not aware about bind button action event as well. So I describe that as well.