This example for you to share the iOS text merry-go effect of the implementation of the code, for your reference, the specific content as follows
One, the effect chart
Second, engineering drawing
Third, the Code
RootViewController.h
#import <UIKit/UIKit.h>
@interface rootviewcontroller:uiviewcontroller
@end
Rootviewcontroller.m
#import "RootViewController.h"
#import "UXLabel.h"
@interface rootviewcontroller ()
@end
@ Implementation Rootviewcontroller
-(ID) Initwithnibname: (NSString *) Nibnameornil Bundle: (NSBundle *) Nibbundleornil
{
self = [super Initwithnibname:nibnameornil Bundle:nibbundleornil];
if (self) {
//Custom initialization
} return
self;
}
-(void) viewdidload
{
[super viewdidload];
Do no additional setup after loading the view.
uxlabel* Label=[[uxlabel alloc] Initwithframe:cgrectmake (m);
Label.backgroundcolor=[uicolor Redcolor];
Label.stringcolor=cgrectmake (0, 0, 0, 1);
label.string=@ "Dear, How are you?" ";
label.stringfont=18.0;
[Self.view Addsubview:label];
[Label Updatelabel];
}
The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.