V
V
viktorleg2015-11-17 15:43:00
iOS
viktorleg, 2015-11-17 15:43:00

How to make a Hashtag for Cyrillic?

Xcode. Swift. iOS.
Guys, I created a separate UITextView class to define #hashtags. In this class, they are selected from the text, and in the UIViewController class they are accepted as URL.scheme. Unfortunately #hashtags in Cyrillic are accepted as empty URLs in this case.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
An, 2015-11-17
@Flanker_4

You can specify that the hashtag in Russian is a link if you use AttributtedString
[mutAttributtedString addAttribute: NSLinkAttributeName value: @" http://... " range: NSMakeRange(0, range)];
tag positions are not a problem, I think

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question