Ian 将 UIBubbleTableView 用于聊天应用程序。它运行良好,但我不想显示日期和时间。有帮助吗?
下面是我的代码:
NSBubbleData *heyBubble = [NSBubbleData dataWithText:@"Hi, this is abcd, how are you?" date:[NSDate dateWithTimeIntervalSinceNow:-300] type:BubbleTypeSomeoneElse];
尝试将 nil 发送到日期输入但数据未显示
有什么帮助吗?如何进一步进行?
最佳答案
你试过这个吗:
NSBubbleData *sayBubble = [NSBubbleData dataWithText:textField.text date:[NSDate dateWithTimeIntervalSinceNow:0] type:BubbleTypeSomeoneElse];
如果不是,我的想法是您可以在库中进行更改,只需检查何时将 date
作为 nil
传递,以便表格隐藏要显示的日期.
关于ios - 使用 UIBubbleTableView 隐藏日期和时间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31198617/