I need to add some text in a diagonal angle similar to the image (the image shows that the text is slanted).
How can i add a slanted text to a UILabel programatically ?
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.
You will need to use
CGAffineTransform.As using this will rotate your label, so you can do like below
in your .h file
in your .m file
if you want to show the slanted text at starting then write below code in
viewDidLoadfunction