-
Given that Iconic is based on SwiftGen, it's easy to provide more than one template for the user to choose from.
- For people that still have to use ObjC, they can still use your current template.
- B…
-
带有自定义表情的attributeText范围计算,可以用下面这段代码吗
NSAttributedString *text = ...
CGSize size = CGSizeMake(100, CGFLOAT_MAX);
YYTextLayout *layout = [YYTextLayout layoutWithContainerSize:size text:text];
// 获取文本显示…
-
赋值
`NSDictionary *dic = @{NSFontAttributeName:[UIFont systemFontOfSize:16],
NSForegroundColorAttributeName:[UIColor redColor]};
NSMutableAttributedString *mutableAttStr = [[NSMutableAttributedString…
-
你好!我想实现一个设置粗体的功能,目前遇到几个问题。
- (void)fontButtonAciton:(UIButton *)btn{
btn.selected = !btn.selected;
NSMutableAttributedString *atts = [[NSMutableAttributedString alloc] initWithString:@" "];
atts…
-
项目中有个需求是要点击图片的事件,我在图片的NSMutableAttributedString中设置 yy_setTextHighlightRange,点击没反应。
```
UIImage *image = [UIImage imageNamed:@"ls_reds"];
NSMutableAttributedString *attrImage = [NSMutableAttributedSt…
-
我通过转data,发现图片读取不出来。目前没找到其他的办法,请教一下。
存
NSData *data = [self.yyTextView.attributedText dataFromRange:NSMakeRange(0, self.yyTextView.attributedText.length) documentAttributes:@{NSDocumentTypeDocumentAttr…
-
``` swift
let chain = BONChain().textColor(UIColor.redColor())
chain.appendLink(BONChain().image(UIImage(named: "image_name")))
chain.appendLink(BONChain().string("TEXT").text, separator: " ")
chain.a…
-
![apple iphone 7 silver](https://cloud.githubusercontent.com/assets/1119821/19779722/63e2900e-9c50-11e6-871d-95ca580e49e7.png)
-
``` objc
NSString *text = [NSString stringWithFormat:@"回复@%@:%@",commentModel.reply_nickname,commentModel.content];
NSMutableAttributedString *attString = [[NSMutableAttributedString alloc] initWi…
-