Message full width of screen
Closed this issue ยท 5 comments
magicmikek commented
magicmikek commented
Solved it: changing the ratio in the following line to 1:
contentNode?.style.maxWidth = ASDimension(unit: .points, value: width * CGFloat(maxWidthRatio))
dodikk commented
@magicmikek , please close this GitHub issue since you've solved it. Thanks.
munsifhayat commented
@dodikk do we have any method to get this message by tapping on it ? Like to open it in full view. And how to achieve pagination ? i.e to load more chat from history.
dodikk commented
@dodikk do we have any method to get this message by tapping on it ?
- It is possible to add gesture recognizers to your message nodes.
- There is
protocol MessageCellProtocol
withfunc avatarClicked()
- You can try to override
ASTableDataSource
methods ofclass NMessenger
in a subclass.
- (void)tableNode:(ASTableNode *)tableNode didSelectRowAtIndexPath:(NSIndexPath *)indexPath;
I used [1] gesture recognizers since not all elements of my message GUI had to be clickable.
dodikk commented
And how to achieve pagination ? i.e to load more chat from history.