Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

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

How to add an app icon to the IOS native share?

I added the ability to share information from my app, but the native share menu presents this white default icon next to the "text to share" instead of my app icon.

This is the code I used to show the share window -

NSString* nsTitle = UTF8_TO_PSTR(title);
NSArray* activities = @[nsTitle];
UIActivityViewController* sharingController = [[UIActivityViewController alloc] initWithActivityItems:activities applicationActivities:nil];

[navigationController presentViewController:sharingController animated:YES completion:nil];

How can I add my app icon to the share window? I already have some icons in the AppIcon.appiconset folder, but it doesn't use them.

native share missing app icon

question from:https://stackoverflow.com/questions/65870825/how-to-add-an-app-icon-to-the-ios-native-share

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

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...