Marquee shortcut effect on iOS

Is there an Android equivalent android:ellipsize="marquee"for iOS? I read some posts about this scrollable text effect in iOS, and it seems that you need to either implement the animation yourself using a timer, or use a third-party control, but these messages are a bit old and I need to make the iOS SDK not include a way to display this effect on his marks ...

If the only way is to encode it yourself or use another control that controls (open and free and allowed for commercial applications), would you recommend?

Thank you so much

+4
source share
2 answers

You can use some, like how WebView, and apply the scroll properties on this WebViewas follows:

In android, it looks like the following:

String summary = "<html><body><marquee>This is basic example of marquee</marquee></body></html>";
webview.loadData(summary, "text/html", null);

The text will move from right to left.

I don’t know how to do this on iPhone or iOS ,

But you also use it in your iOS UIWebViewObject.

Hope this will be helpful for you.

You can also use javascript in WebViewand can apply various types of scrolling.

+3
source

You can use MarqueeLabel :

Goal C and Swift: https://github.com/cbpowell/MarqueeLabel

+3
source

Source: https://habr.com/ru/post/1543389/


All Articles