开发者

Add default text to iOS mail composer

开发者 https://www.devze.com 2023-03-05 18:57 出处:网络
I have: [mailComposer setMessageB开发者_C百科ody:[self currentText] isHTML:NO]; Where emailComposer is just the iOS email composer view. I want to add to currentText another string. How would I do

I have:

[mailComposer setMessageB开发者_C百科ody:[self currentText] isHTML:NO];

Where emailComposer is just the iOS email composer view. I want to add to currentText another string. How would I do this?


NSString *messageBody = [NSString stringWithFormat:@"%@%@", [self currentText], someOtherString];
[mailComposer setMessageBody:messageBody isHTML:NO];
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号