2014-02-24 37 views

回答

1

試試這個:

UIActionSheet * actionSheet = [[UIActionSheet alloc] initWithTitle: nil delegate: nil cancelButtonTitle: @"Cancel" destructiveButtonTitle: nil otherButtonTitles: @"Take photo or video", @"Choose photo",… nil]; 
[actionSheet showInView: self.view); 

或斯威夫特

UIActionSheet(title: nil, 
       delegate: nil, 
     cancelButtonTitle: "Cancel", 
destructiveButtonTitle: nil, 
     otherButtonTitles: "Take photo or video", "Choose photo").showInView(self.view) 
+0

非常感謝你。 – Stone

+0

很高興幫助!如果你喜歡它,不要忘記接受答案。乾杯! –

相關問題