2014-01-03 3 views
0

Я пытаюсь создать UIActionSheet, похожий на Safari's. Я не смог найти что-либо в документации Apple о том, как сделать UIActionSheet похожим на это. Есть ли элемент управления/API, который у меня отсутствует, который я могу использовать для создания того, что ниже, или я придерживаюсь создания собственного UIView и отображения этого?UIActionSheet-подобный контроль, подобный iOS 7 Safari's

Ninja Редактировать: Это похоже на UIActivityViewController. Есть ли способ добавить к нему свои собственные действия?

ios 7 UIActionSheet

+0

Я не думаю, что это обычный лист действий - это какой-то общий лист, нет? – nielsbot

ответ

4

Это не UIActionSheet.

Это UIActivityViewController:

https://developer.apple.com/library/ios/documentation/uikit/reference/UIActivityViewController_Class/Reference/Reference.html

Из документации Apple:

The UIActivityViewController class is a standard view controller that you can use to offer 
various services from your application. The system provides several standard services, 
such as copying items to the pasteboard, posting content to social media sites, sending 
items via email or SMS, and more. Apps can also define custom services. 

Your app is responsible for configuring, presenting, and dismissing this view controller. 
Configuration for the view controller involves specifying the data objects on which the 
view controller should act. (You can also specify the list of custom services your app 
supports.) When presenting the view controller, you must do so using the appropriate means 
for the current device. On iPad, you must present the view controller in a popover. On 
iPhone and iPod touch, you must present it modally. 
Смежные вопросы