Problem sending ASCII Art via SMS and Email in iPhone SDK

Posted by PARTH on Stack Overflow See other posts from Stack Overflow or by PARTH
Published on 2011-01-05T06:06:21Z Indexed on 2011/01/05 9:53 UTC
Read the original article Hit count: 440

Filed under:
|
|
|
|

Hi Guys,

In my iPhone app, I have ASCII art, which I am sharing via email and SMS.

I have inserted the ASCII art into the Sqlite database along with the newline character and spaces.

Problem is when I send them through SMS and Email, the whole ASCII art comes in left alignment and spacing between characters is lost.

ASCII Art fetched in Label in my app is as below

alt text

Same ASCII Art when inserted to Email API (MFMailComposeViewController) is as below

alt text

How to maintain the spaces?

What can be done?

Please Help and Suggest.

Thanks

© Stack Overflow or respective owner

Related posts about iphone

Related posts about cocoa-touch