Problems adding custom activity to UIActivityController

前端 未结 3 1945
遥遥无期
遥遥无期 2020-12-10 06:23

I am trying to implement a custom activity to the standard activities (Print, Mail, FaceBook, etc.) but for now only want the standard Print (for AirPrint) and my own custom

3条回答
  •  北海茫月
    2020-12-10 06:57

    thanks for your help, guys! And, for the activity image, it seems we have to provide image following this by Apple docs:

    The alpha channel of the image is used as a mask to generate the final image that is presented to the user. Any color data in the image itself is ignored. Opaque pixels have a gradient applied to them and this gradient is then laid on top of a standard background. Thus, a completely opaque image would yield a gradient filled rectangle. For iPhone and iPod touch, images should be no larger than 43 by 43 points (which equates to 86 by 86 pixels for devices with Retina displays.) For iPad, images should be no larger than 55 x 55 points (which equates to 110 by 110 pixels for iPads with Retina displays.)

提交回复
热议问题