I have used “Register yourself” as text. I want to make it as link. And by clicking on that link, it should open Register.xib.
How can I get this link??
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.
Kareem is right. Create a UIButton object, set it’s type to “Custom” and then you can give it a title. Connect the action to a method which pushes or presents your Register view controller and you will be all set.
You’ll probably want to give some indication to the user that the text is a clickable link. Either set the color of the text to blue. Another, completely separate option, is to use a
NSAttributedString(which has an underline attribute) to indicate to the user that the text is clickable. That requires an Open Source replacement for UITextView (which you can learn more about from this related question).