一,效果图。二,工程图。三,代码。ViewController.h#import <UIKit/UIKit.h>@interface ViewController : UIViewController@end ViewController.m#import &qu ...
一,效果图。
二,工程图。
三,代码。
ViewController.h
#import <UIKit/UIKit.h>@interface ViewController : UIViewController@end
#import "ViewController.h"//加入头文件#import "HBLabel.h"@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. HBLabel * label=[[HBLabel alloc]initWithFrame:CGRectMake(50, 50, 200, 30)]; [label setTextAndIcon:@"[月亮]这是HBLabel的测试[转圈][发怒][抠鼻]这是HBLabel的测试[傲慢][得意][吐][弱]这是HBLabel的测试[晕][擦汗]"]; label.font=[UIFont systemFontOfSize:14]; [self.view addSubview:label];}
海外公司注册、海外银行开户、跨境平台代入驻、VAT、EPR等知识和在线办理:https://www.xlkjsw.com
原标题:【代码笔记】图文混排(HBLabelDemo)
关键词:
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们:
admin#shaoqun.com
(#换成@)。