URL in iPhone SMS content
I'm developing an iPhone application where SMS native application should open when the user clicks the button.
This is working fine and I am also able to copy the content to clipboard when the user clicks on the button.
But I want to provide a URL in the SMS content which I am copying so 开发者_如何学Gothat the user click on the URL to open it in the browser.
Can anyone suggest me how to provide clickable URL in SMS content?
If I'm understanding your question correctly, you can simply encode the URL in the SMS content - the iPhone SMS application will display it as a clickable/tappable URL. This is, of course, assuming that you simply want to send a clickable link. As rpetrich mentions, there is no way to send rich content directly via SMS.
The APIs for copying rich text (HTML) content to the clipboard are private for the time being. Even if they weren't, SMS messages do not support them--I think MMS messages do, but on some carriers they're more expensive.
精彩评论