星空网 > 软件开发 > 操作系统

【代码笔记】图文混排(HBLabelDemo)

一,效果图。

【代码笔记】图文混排(HBLabelDemo)images/loading.gif' data-original="http://images2015.cnblogs.com/blog/337518/201510/337518-20151020153014458-733930025.jpg" width="218" height="400" />

二,工程图。

【代码笔记】图文混排(HBLabelDemo)

三,代码。

ViewController.h

#import <UIKit/UIKit.h>@interface ViewController : UIViewController@end

 

ViewController.m

【代码笔记】图文混排(HBLabelDemo)
#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];}
【代码笔记】图文混排(HBLabelDemo)

 

 


 

原标题:【代码笔记】图文混排(HBLabelDemo)

关键词:

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

必看!详解Facebook引流方法!:https://www.ikjzd.com/articles/108429
如何成为Shopee优选卖家,优选卖家的优势:https://www.ikjzd.com/articles/10843
阿里国际站商品任务板块上线,助力商家智能运营!:https://www.ikjzd.com/articles/108430
旺季侵权频发,亚马逊运营七大要点避开雷区!:https://www.ikjzd.com/articles/108431
亚马逊广告投放误区规避方法,亚马逊广告如何设置效果好?:https://www.ikjzd.com/articles/108433
亚马逊站内站外流量来源解析,帮助你理清优化思路:https://www.ikjzd.com/articles/108434
无锡旅游景点竹海 - 无锡的竹海:https://www.vstour.cn/a/363178.html
5月贾汪好玩的地方 贾汪哪有好玩的地方:https://www.vstour.cn/a/363179.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流