Search code examples
iosobjective-cimessage

iMessage App - iOS 10 localParticipantIdentifier.UUIDString does not translate in simulator


Below is a snippet showing adding a subcaption to a previously created MSMessage. Upon running in the simulator, the string prefixed with $ does not translate to the contact name as expected.

Bug in my code?

MSMessageTemplateLayout *templateLayout = [[MSMessageTemplateLayout alloc] init];
NSString *messageText = [NSString stringWithFormat:@"Challenged by $%@", 
                                                     currentConversation.localParticipantIdentifier.UUIDString];  
[templateLayout setSubcaption:messageText];

Solution

  • There is an open radar for it: https://openradar.appspot.com/26877873