Crosslight iOS TableView and Label

10 replies. Last post: September 16, 2015 1:55 AM by leo Chandra
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

Hello Crosslight Support,

I have some questions about the TableView on iOS.

1. I have the built-in TableView and in the ViewController I set InteractionMode the Standard. I want to capture a row click. I thought the override RowSelected would do the trick. But when clicking on a row my breakpoint is never hit. How can I capture a row click in the ViewController? Is there a better my, so I can capture the row click in the ViewModel?

2. This belongs to 1. After clicking on a row, this row is selected. How can I deselect a row after it is clicked?

3. The TableView fills by default the whole screen. If I have less rows with content then the height of the screen, there are empty rows with just a row separator. How can I only show rows with content?

4. I want to set the text of a label programmatically. How can I set the text of a label when the text contains multiple lines? I thought "label.Text = @"Line1\nLine2" would work, but it doesn't.

Thanks for your support.

Thomas

All times are GMT -5. The time now is 1:04 PM.
Previous Next