2016-11-18 26 views
0

我有以下打開蘋果郵件應用程序的代碼。除非它不能正確顯示新行,否則這種方法運行良好。這是我正在使用的代碼。OSX:Apple Mail App不會顯示新行

NSArray *[email protected][@"text <br/> text one"]; 
    NSSharingService *service = [NSSharingService sharingServiceNamed:NSSharingServiceNameComposeEmail]; 
    service.delegate = self; 
    [service performWithItems:shareItems]; 

它顯示在蘋果的郵件應用這樣text <br/> text one。 如何在Apple郵件應用程序中顯示新行?

回答

0

您正在撰寫純文本郵件。因此你必須使用\n換行。

如果您想要添加HTML,您可能需要插入一個完整的HTML文檔,但它可能無法正常工作,我沒有自己嘗試。