Simple question: is there a way to make a WKInterfaceLabel
scroll if its text is too long to fit within the label’s frame? Something akin to a UITextView
?
相关问题
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- “Zero out” sensitive String data in Swift
- Get the NSRange for the visible text after scroll
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Swift - hide pickerView after value selected
- How do you detect key up / key down events from a
- didBeginContact:(SKPhysicsContact *)contact not in
- Attempt to present UIAlertController on View Contr
You can definitely do this. All you need to do is set the following properties on the
WKInterfaceLabel
in the Storyboard.This will let you scroll to your heart's content. I just mocked it up in a sample app and it works exactly as you would expect.
Hope that helps!
You have to follow these steps respectively to Achieve result like this image.This is a Scrollable View.
I use two groups
Group1: Group1 include image,heading Label,date Label and Group2
Image:
Heading and Date Label:
Group2: Group2 includes description Label
Description Label:
You need to set label's property set height of label as text size
as below
It isn't possible to have a
WKInterfaceLabel
scroll its contents. Your only choice is to truncate the text or allow the label to grow and accommodate it.