Xcode iPhone - How To Attach A Signature To A Text Message Automatically? - iphone

What I am trying to figure out how to do is, when I send a regular text message through my iPhone's built in text messaging app, how can I hard-code a text message (signature) to be displayed after my text message I write to someone?
Example:
I launch my text messaging app, and I want to send a text to someone named John.
I then type the following to John in the text field: "Hello John, how are you?"
After I press the send button, I see the standard bubble, but below my text I sent to John is my hard coded signature.
So it sent my original text as well as my hard coded signature to John. So what exactly do I need to do "code wise" in order to accomplish this? Example code would be great if possible.
Thanks

It's not a perfect solution—iOS doesn't allow you to automate the sending of text messages (to prevent spamming and/or junk messages). However, you can present an interface through MFMessageComposeViewController.
In this class there is a body property. By setting an NSString to that property, you can present existing text. Of course the user would still work around that, and could delete it—that is something you have no control over, for UX reasons.

Related

HTML Email Signature Display Issues

So, I have created an email signature and am testing it in Thunderbird. I am using thunderbird because they provide the easiest way of testing new signatures (just paste and go.)
However, I am finding that after I REPLY sometimes the images show up IN the email itself as
<my-image-name.gif> or sometimes they show up as
<mime-attachment.png>
This only happens on a reply, BUT it does show up this way on both the iPhone and Thunderbird.. Initially everything looks fine.
No, none of the images are missing. As mentioned, the signature looks great on initial send.
Wondering is there any meta-data info. I need to put in the beginning of the signature besides <html><body>? I think the email programs are jacking with the html in the signature. Is there a way to prevent it? Or is it something else entirely going on here?

UWP RichEditBox Text with Inline Rich Objects

I am working on a UWP app and I'm basically trying to do exactly what Facebook does with their app when composing a post.
Basically I want to be able to type text and At Mention someone in the RichEditBox. The person's name should be highlighted and when I tap on it I should be able to invoke a Command in my view model. Also once I hit send, I need to parse out what is text and what's a link to a person's account. I've played around a lot with the RichEditBox but can't quite figure this out.
Does anyone have any hints or ideas? I'm thinking I'll have to keep track of my object's position on every keystroke, just wondering if there's a cleaner way to do it.
You could use the RichTextBox.Document.Selection.Link property to store a custom link to your entity (ex: "mention://JohnDoe")
https://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.text.itextrange.link.aspx

create hyperlink in sms in iPhone

Is it possible to create a hyperlink in an sms in an iPhone?
For example, if I want the word 'foo' hyperlinked in HTML then I'll write foo in a normal situation.
If I want to have a certain word in my sms to be hyperlinked to something, is there any way I can do this? Like "I have a surprise for you" and the receiver taps on the hyperlinked word 'surprise' which will take the user to the destined page.
Any suggestions as to how this can be done? Examples and samples welcome!
Thanks in advance :)
No, you cannot use html tags in sms / text messages. All you can do is insert the URL without the tag. It then depends on the receivers device whether the URL is presented to the user as link or as plain text.
I experimented with exactly this just yesterday. It seems you can't include a nicely formatted hyperlink, unfortunately. I hope to be proven wrong by somebody else, though :-)
However, as you've probably seen yourself, iPhone is able to recognize an URL and you can tap on it to open the URL in Safari (or tap the disclosure button next the message to get more options on what to do with the URL). As far as I can tell the only thing you can do is format your SMS accordingly: "I have a surprise for you: http://foo.com" even though that might spoil the surprise ;-)
No, you can't do this due to privacy issues. Apple thinks that giving you this ability would allow you to link users to malware and such. Sorry!
i don't think it's possible to create hyperlinks in SMS.
The only way is to send an URL, and the iPhone will convert it to a link...
Use a tiny url from tinyurl.
It doesn't allow you to do exactly what you are wanting but it at least can be used to cover up the long link.
This is the closest thing I figure out to do. I was wanting to use the "
No, you can not do this. However you could use tinyurl and format it like this
http://whateverYouWantToSay#tinyurl.com
Web browsers usually ignore anything before an # therefore you could effectively hide the actual site being linked to, as long as your friend does not know that.
What actually happens is the data before the # is submitted to the web site in the form username:password. However it must be a site that requires authentication to access, or the site will normally just ignore it.
If this helps, I've noticed that a custom hyperlink is possible on the OS X Messages app, but they have to be copied and pasted. To replicate this right click on a hyperlink in your browser and hit copy link. Then paste into Messages.
Uhhh this is possible here is a screenshot of an example - I copied a link from email and pasted in a new SMS - though it appears you cannot type html to create a link....

iPhone Objective-C: Select from table and diplay selected ones in the style of the "To:" part of iPhone's SMS, email, etc

I want to be able to select items from a table and display them like how the iPhone displays the list of recipients for SMS, email, etc. It would be great if you could lead me to any resources and/or direction for this kind of thing. (I wasn't really sure how to Google this kind of thing too.)
Thanks in advance!
If you mean the interface with each email address in a little bubble, and they get highlighted if you hit backspace and deleted if you hit backspace again, it's kind of complicated to reproduce (I've done it). This is partly because (at least prior to iOS4) the way you interact with the keyboard is a bit limited. You need to have a hidden space character at the beginning of your UITextField to even get a call when the user hits backspace when there are no other characters left.
As for creating the table that shows the addresses from the user's address book, use a standard UITableView and do yourself a favor and use Erica Sadun's address book utilities to get the data from the address book.
There is something very similar in the Three20 framework, so I'd suggest you have a look at that.

Can you set code to fire when a text message is received?

I'm still very new to the iOS SDK. Is it possible to hook into a received text message event? For instance, to display an image whenever a text message is received.
Not having been able to find it in the docs, so I'm assuming no, but wanted to double check before I crossed this off my list.
It's not possible. Not much more to say.