Search code examples
iosxcodeuilabel

How to rotate UILabel in iOS


I want to know how to rotate UILabel in xcode as per attachment as watermark ("Expired").

image with watermark "expired"


Solution

  • use

    yourLabel.transform = CGAffineTransformMakeRotation(M_PI /2); // set the dividend what you like
    

    additional Reference see this --> How to angle a uilabel in ios