Is their a way to configure the long press on a message that was sent? For instance if you long press on text you have the ability to copy and tap more. Currently my app only displays more. Is their a way to add copy in the action sheet for custom apps as well?
Unfortunately the transcript of the conversation is not accessible to us. It's part of the iMessage app. For that reason you won't be able to custom the option menu.
Related
I have a iOS app that wraps a website. When the user clicks a link in the wrapped website, I want to trap the event in my app and be able to get information about the link that was clicked. Is this something that can be done in Swift?
I'm relatively new to iOS app development and I'm working on an app that has been around for a while.
The short answer is "Yes". There are a couple of views that you can use in iOS to display web content. One such view is WKWebView.
If you look at the documentation at that link, close to the bottom of the page you will find a header for "Managing Navigation Through your Web Content".
What you do is create a WKNavigationDelegate that you attach to your WKWebView. That delegate is notified when the user wants to navigate through the web content (for example, when they click on a link) and lets your application code participate in the navigation process. It can allow navigation, deny navigation, find out when it starts and stop, things of that nature.
I have generated an MFMessageComposeViewController to send a preconfigured SMS message, and I now want to draw the user's attention to the send button. The user has already initiated the "send message" process from within the app, but they must then press the send button within the MFMessageComposeViewController to actually send the message. The send button in the standard MFMessageComposeViewController is "hidden away" in the bottom corner of the message body where some, not so tech-savvy users, struggle to find it (a fact not opinion, as I have had test users ask what to do next)!
Apple does not allow this message compose interface to be modified, except for certain exceptions. I have looked into the UIAppearance protocol, which provides limited options to modify aspects of the MFMessageComposeViewController, but the options do not apply to the send button.
I have looked into the documentation, and there are options to highlight or focus on interface objects using the accessibility options, but I can not find a way of linking this to the send button within the MFMessageComposeViewController where I have limited access to the UI components.
How do I highlight the send button within the MFMessageComposeViewController, or access the button so that I can draw the user's attention to it?
Unfortunately, it is not possible to directly highlight or modify the appearance of the send button within the standard MFMessageComposeViewController. This is because the interface provided by the MFMessageComposeViewController is not directly customizable and is intended to provide a consistent user experience across all iOS apps.
One solution to consider is to provide additional instructions or guidance to the user before they are presented with the MFMessageComposeViewController. This could include an on-screen message or tutorial that specifically points out the location of the send button within the interface, or providing a visual indicator such as an arrow or highlight box to guide the user to the correct location.
Another option is to present the MFMessageComposeViewController in a modal view controller and add additional instructions or guidance in the modal view controller.
Also, you can use the accessibility options to add a VoiceOver label to the button, which can be read out loud to the user when the button is in focus.
It's worth noting that Apple's HIG (Human Interface Guidelines) discourages from customizing the system's standard view controller. You should try to stick to the standard iOS interface so that the user can feel comfortable and familiar with the app.
I am not sure how to correctly name the thing that I am looking for. Therefore I was not able to find an answer.
The effect I want to learn is for example used in the iMessage app when adding a recipient you can write the recipients name, then it is replaced by a clickable button and user is able to select then delete it by pressing delete key.
How can this be done?
Sample image from iMessage app:
I am building a chat app that uses JSQMessagesViewController. The default functionality includes the ability for a user to long press a chat bubble which then presents a copy menu option (see screenshot). I would like to add an additional custom menu for reporting a comment. Ideally when the user long presses a chat bubble the menu now has two options, copy and report. Can someone please point me in the right direction for adding this custom menu button? Thank you!
See the demo file
https://github.com/jessesquires/JSQMessagesViewController/blob/develop/JSQMessagesDemo/DemoMessagesViewController.m
See the use of customAction
On my iPhone, when I view a photo I see a "send" button on the bottom toolbar; when I click this I see a menu screen with Mail, Message, Twitter, Facebook, Assign to Contact, Print, Copy and Use as Wallpaper icons.
Is there any way to get my app added to this list, and if so how do I set up my app to receive notification of this event and get access to the photo that is being viewed?
I had this exact same question and for whatever reason it took me a very long time to find this answer on stackoverflow that helped me. I hope it helps you.
Problems adding custom activity to UIActivityController