ich in Main.storyboard
Bar Taste Artikel, und ich fügen Sie einige Aktionen, wenn Sie, mein Code Rezensent mir will es in den Code der UIAlertAction
in Main.storyboard
statt zu setzen Hinzufügen Ich frage mich, ist es richtig? Wenn ja, gibt es einen Weg dies zu tun? Ich finde das Objekt UIAlertAction
nicht.Kann UIAlertController und UIAlertAction in Main.storyboard hinzugefügt werden
- (IBAction)openFileUIBarButtonItem:(UIBarButtonItem *)sender {
UIAlertController *alert = [UIAlertController alertControllerWithTitle:nil
message:nil
preferredStyle:UIAlertControllerStyleActionSheet];
UIAlertAction *pickFileButton = [UIAlertAction actionWithTitle:@"Pick A File"
//......
}
Dank für Ihre Antwort danken! – wangshaoping