【代码笔记】iOS-图文混排(HBLabelDemo)
来源:互联网 发布:sata数据转移线 编辑:程序博客网 时间:2024/06/16 15:50
一,效果图。
二,工程图。
三,代码。
ViewController.h
#import <UIKit/UIKit.h>@interface ViewController : UIViewController@end
ViewController.m
#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];}
0 1
- 【代码笔记】iOS-图文混排(HBLabelDemo)
- iOS图文混排
- IOS图文混排
- iOS图文混排
- IOS CoreText --- 图文混排之代码封装
- 网页图文混排代码
- iOS coreText 图文混排
- IOS CoreText --- 图文混排
- IOS CoreText --- 图文混排
- iOS 实现图文混排
- iOS NSTextAttachment - 图文混排
- 50行代码实现图文混排
- iOS实现简单图文混排效果
- iOS实现简单图文混排效果
- iOS实现简单图文混排效果
- iOS实现简单图文混排效果
- IOS CoreText.framework --- 图文混排
- IOS CoreText.framework --4---- 图文混排
- wireshark捕获/过滤指定ip地址数据包
- IP地址
- English_study m
- ffmpeg 常用命令汇总
- iOS 想怎么转就怎么转
- 【代码笔记】iOS-图文混排(HBLabelDemo)
- 乐观锁和悲观锁的区别
- 使用wireshark常用的过滤命令
- IHttpHandler详细介绍
- ARM嵌入式开发中的GCC内联汇编(ARM GCC Inline Assembler Cookbook)
- 解决eclipse项目二次启动
- 地铁译:Spark for python developers ---Spark流式数据处理
- mips下交叉编译iperf
- 在WebSphere下实现F5下获取客户端真实IP