简体   繁体   中英

iOS Share Dialog?

I'm curious, is the standard "Share" dialog you see throughout a lot of iOS apps a standard SDK dialog or is everyone just mimicking the ones that Apple created for their apps like Safari? Or perhaps everyone is using ShareKit?

For instance, on iPhone you get a nice 3/4 modal dialog which does a vertical cover appearance, containing a bunch of shiny buttons:

iPhone 共享对话框

While on iPad you see a "speech bubble" type dialog appear:

iPad 共享对话框

This seems too standard across apps to just be coincidence/people ripping off the look and feel.

The situation you presented in this specific case is caused by the fact that on iPad, the UIActionSheet is always presented within a popover controller, and on the iPhone it displays as in your example, withouth a Popover Controller (which is only available on the iPad)

I've written my own code for sharing using Facebook's SDK and the iOS5 Twitter integration so I've never used it but I believe there is a library you can use called ShareKit that will create the action sheets and sharing capability that you'd like. The "up-to-date"/"2.0" (I believe the original is no longer maintained) version is available here: https://github.com/ShareKit/ShareKit

Apple provides the tools to make UI objects. The one you are looking at is "UIActionSheet". Developers can bind methods to the tap events of the actionsheet.

Apple encourages developers to keep a consistent UI in order to make the overall use easier on the user.

Check out the Apple Human Interface Guidelines.

link

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM