Customize the AirDrop alert description in IOS

后端 未结 4 962
盖世英雄少女心
盖世英雄少女心 2021-02-02 14:19

I have the following code to send a URL through AirDrop:

NSString* selfUrlScheme = [[[[[[NSBundle mainBundle]
                                 


        
4条回答
  •  一整个雨季
    2021-02-02 14:31

    You need to follow the tutorial HERE. After the heading "A Quick Look at UIActivityViewController", i think thats exactly what you are looking for.

    UIActivityViewController *controller = [[UIActivityViewController alloc] initWithActivityItems:objectsToShare applicationActivities:nil];
    [self presentViewController:controller animated:YES completion:nil];
    

提交回复
热议问题