There's no base init method available for the JSQMessage class.
But we can see there's other inits available, like this one:
- (instancetype)initWithSenderId:(NSString *)senderId senderDisplayName:(NSString *)senderDisplayName date:(NSDate *)date text:(NSString *)text
Which in Swift is translated as:
JSQMessage(senderId: , displayName: , text: )
Another example for JSQMessagesBubbleImage in Objective-C:
JSQMessagesBubbleImage *bubbleImage = [[JSQMessagesBubbleImage alloc] initWithMessageBubbleImage: highlightedImage:];
It becomes:
let bubbleImage = JSQMessagesBubbleImage(messageBubbleImage: , highlightedImage: )
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.