I want to create a UILabel in which the text is like this

How can I do this? When the text is small, the line should also be small.
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.
SWIFT 5 UPDATE CODE
then:
To make some part of string to strike then provide range
Objective-C
In iOS 6.0 >
UILabelsupportsNSAttributedStringSwift
Definition :
Parameters List:name : A string specifying the attribute name. Attribute keys can be supplied by another framework or can be custom ones you define. For information about where to find the system-supplied attribute keys, see the overview section in NSAttributedString Class Reference.
value : The attribute value associated with name.
aRange : The range of characters to which the specified attribute/value pair applies.
Then
For
lesser than iOS 6.0 versionsyou need3-rd party componentto do this.One of them is TTTAttributedLabel, another is OHAttributedLabel.