I have a problem. I want to mail some data either in the form of exce or csv or pdf.
The Flow is , I have to present an UIActivityViewController. The I Have to click on the mail button. Then activity view controller should disappear. Then a view will came (made by me) that will ask about the format of file which i have to mail. Then next the mail view will open asking about the email address etc. The i will click send and it will sent.
My problem is:- I am using UIActivityViewController but i dont know how to stop its process as i click on mail and put some user interaction in between.
Please Help.
You need to call the activityDidFinish: method on the chosen UIActivity.
From the docs for UIActivity activityDidFinish::
Related
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 have a slack modal window
https://api.slack.com/surfaces/modals
I want to give the user an option to upload a file and send the content with the submit payload.
Is it possible?
No. You can only place block elements on your modal and it (currently) does not include a file picker.
i have a problem about devise messages. When i sign in into my page, a notice messages "welcome to my blogs" show up and if i go to another page and go back through button back in browser, i still got this message, how to make is disappear? I know we can do it by refresh any page when back button pressed, but i don't want to do that, any one have another ideal for my problem?
You probably didn't do a check to dismiss this notification upon user logged in.
You can check this link on how to do that. https://coderwall.com/p/b5lhog/ignore-turn-off-devise-config-reconfirmable-while-saving-email-in-update-action
To style your notification as well you need this. I have used this video multiple times on different projects. https://www.youtube.com/watch?v=87fBAWc25Sk
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
I am new in iPhone development. I am doing a contact us page. Here I uses a UITextView to display the details. In it, there is a email address link (abc#company.com). When a user tapped on the email link, the iPhone's default mail app needs to be appear. But I don't know how to get the click event of the email link in UITextView.
How can I achieve this ?.
I know how to load mail app. But before that I want to do some other things. So how can i get a click event when user taps on the email link in UITextView ?
The iOS SDK does not expose this event in a UITextView. If you want to intercept a tap on an email link, you will have to use a UIWebView instead of the text view.
you can do it with uiwebview in your html content try this <a href="mailto:abc#company.com">