How can I create a custom UIActivity in iOS?
The reason I want this is to add a Review App button in one of my apps that takes the user to the review section in the App Store. How can I create such a custom UIActivity?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First, create the files. I chose to name mine ActivityViewCustomActivity
Make ActivityViewCustomActivity.h look like this:
Make ActivityViewCustomActivity.m look like this:
This is what my image looked like:
Here is the .PSD I made: — malicious link removed —
And here is the original 250 px .png https://i.stack.imgur.com/PAbIM.png
Now in your view controller do this:
And now wherever you want to display your
UIActivityViewController: