UILable的text设置中划线(删除线)
2015-12-21 21:53
447 查看
NSDictionary *attribtDic = @{NSStrikethroughStyleAttributeName: [NSNumber numberWithInteger:NSUnderlineStyleSingle]}; NSMutableAttributedString *attribtStr = [[NSMutableAttributedString alloc]initWithString:@" 价格:40" attributes:attribtDic]; label.attributedText = attribtStr;
相关文章推荐
- Arduino - 多线程库SCoop应用 之 任务
- UIView基础篇
- UITableView tableFooterView autolayout自动计算高度
- Replication-Replication Distribution Subsystem: agent xxxxxx failed. Column names in each table must be unique
- UIDynamic简单总结
- createQuery is not valid without active transaction
- C# 线程向UI通信 委托(delegate)
- 【Codeforces 597C】 Subsequences - DP 主席树
- UIImageView 实现一组动画
- mapreduce 自定义key/value 输出分隔符
- 【iOS】UITextField限制输入长度
- UI day 22 block动画 CAlayer动画
- UI day 20 iOS FMDB自己封装的单例类
- UI day 19 UICollectionView
- UI day 18 数据库SQL语句
- SelectAllStu GetNameById queryStuById
- UI 17 day 初级数据持久化
- UI day 16 KVO观察者模式
- UI day 13 Xib可视化编程 storyboard可视化编程
- UI day 12 UITabBarController 标签视图控制器 微信的界面 Block 传值