-
我在做YYLabel的高度自适应时,总是遇到YYLabel的内容与上下边缘有边距,而且随着attributedText.length越来越大上下边距也越来越大,这导致我在UI布局时跟设计图总是有出入,没法完整的对齐周围的控件,但是当我把控件换成UILabel时,就没有这个问题了。PS:我是用- (CGRect)boundingRectWithSize:(CGSize)size options:(N…
-
我使用Masonry布局,使用系统的UITextView可以正常显示,如果使用YYTextView高度就是0.
是不是不支持? 还是需要用YYTextLayout计算一次高度?
-
When use TTTAttributedLabel on UICollectionViewCell, the text is clickable even not set a link, seems cell reuse caused.
-
![tmp2a60b198](https://cloud.githubusercontent.com/assets/5283516/12574648/db176fb6-c440-11e5-9942-de9f032d6ac2.png)
输入表情之后的换行有问题,请问如何设定换行呢?
-
I am adding images to compose bar’s textview using NSTextAttachment. But when I add more than 2-3 images, textview is not exactly scrolling to caret. Also when I have a combination of text and images …
-
I have this code and similar code like it around my app.
``` swift
Async.background { [weak listing] in
var coloredString: NSMutableAttributedString? = NSMutableAttributedString(string: "P…
-
During build (debug) I receive such errors:
```
egrep: .../Pods/FontAwesome.swift: Is a directory
egrep: .../Pods/Target Support Files/FontAwesome.swift: Is a directory
Command /bin/sh emitted error…
-
Hello,
I've been using the cell bottom view to indicate if a message has been sent/received, like in iMessage.
Now I would like to have one or two checkmarks inside the bubble, like in Whatsapp. I wou…
-
怎样可以做到像app store的详情一样,就是先显示四行的介绍,后面有更多的按钮,点击更多的时候展示全部。我现在把按钮加到最后面,但是因为一开始只展示2行的文字,所以高度是固定了,要将内容截掉才可以吗?谢谢!
```
NSMutableAttributedString *text = [NSMutableAttributedString new];
UIFont *font = [UIFont…
-
Once I changed keyboard input to Chinese Pinyin. Found this:
![textinput_bugs](https://cloud.githubusercontent.com/assets/6068413/12711957/1607e53e-c8ff-11e5-9b40-0942f118de94.gif)
Regards,
Ferrick