Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
438 views
in Technique[技术] by (71.8m points)

ios - How to get listed in the share menu?

I'm creating a messaging app and I would like to enable other apps to share text to my app via the share menu option.

How do I get my app listed in there?

This is the menu I would like to get listed in:
image

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

In iOS 8, Apple has now enabled a way for you to add your application to a user's Share Sheet as one of many features of Extensibility, which aims to make your app available to the user even when closed.

enter image description here

You can read a lot more about share extensions here, or go straight to Apple's pre-release documentation to dive into the code.


Update: Above link of Apple documentation is not working, check here App Extension Programming Guide: Share


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...