в моем приложении я хочу добавить строку (которая содержит текст на языке справа налево), как это к заметкам:
:شماره کارت
xxxx-xxxx-xxxx-xxxx
محمد کاظمی
это мои коды:
NSString *shareText = [NSString stringWithFormat:@"%@ :\n%@\n %@\n %@\n %@", NSLocalizedString(@"CardPan", @""), [self.card getCardNumberWithDashed], self.deposit.customerName, NSLocalizedString(self.bank.logo, @""), NSLocalizedString(@"ShareBankCard", @"")];
NSMutableArray *sharingItems = [NSMutableArray new];
[sharingItems addObject:shareText];
UIActivityViewController *activityController = [[UIActivityViewController alloc] initWithActivityItems:sharingItems applicationActivities:nil];
activityController.popoverPresentationController.sourceView = parent.view;
activityController.popoverPresentationController.permittedArrowDirections = UIPopoverArrowDirectionAny;
activityController.popoverPresentationController.sourceRect = CGRectMake([Functions Dwidth]/2-15, 0, 30, 30);
[parent presentViewController:activityController animated:YES completion:nil];
при открытии заметок в моем iPhone и проверке моей заметки текст сохраняется следующим образом:
:شماره کارت
xxxx-xxxx-xxxx-xxxx
محمد کاظمی
что мне делать?