Ios 如何将视图控制器推送到SLComposeServiceViewController上?
这就是我现在拥有的: 但我更喜欢这样的东西: 当我点击该选项时,我会将一个新的Ios 如何将视图控制器推送到SLComposeServiceViewController上?,ios,swift,ios8-share-extension,Ios,Swift,Ios8 Share Extension,这就是我现在拥有的: 但我更喜欢这样的东西: 当我点击该选项时,我会将一个新的UIViewController推到堆栈上: 这就是我的configurationItems()方法的外观: override func configurationItems() -> [AnyObject]! { let composeSheet = SLComposeSheetConfigurationItem() composeSheet.title = "firstItem"
UIViewController
推到堆栈上:
这就是我的configurationItems()
方法的外观:
override func configurationItems() -> [AnyObject]! {
let composeSheet = SLComposeSheetConfigurationItem()
composeSheet.title = "firstItem"
composeSheet.value = "defaultValue"
let composeSecondSheet = SLComposeSheetConfigurationItem()
composeSecondSheet.title = "secondItem"
return [composeSheet, composeSecondSheet]
}
这就是它需要做的:
let composeSheet = SLComposeSheetConfigurationItem()
composeSheet.title = "firstItem"
composeSheet.value = "defaultValue"
composeSheet.tapHandler = {
self.pushConfigurationViewController(UIViewController())
}
分配tap处理程序后,它会自动创建右箭头:
当您按下该组合表
时,您将控制器推到导航堆栈上:
为什么这个问题被否决?如果我想在单击第一个项目后显示一个完整的视图控制器,该怎么办?就像dropbox在保存到optiont时所做的一样。我尝试了“controller.modalPresentationStyle=.overCurrentContext”,但没有成功。