メインのViewControllerがあり、ボタンをタップするとアクションシートが表示されます。そこでタップしたオプションの1つで、アクションシートを表示したいと思います。しかし、すべての検索にもかかわらず、私はそれを理解できないようです。
私は次のコードを持っています:
- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex {
NSString *buttonTitle = [actionSheet buttonTitleAtIndex:buttonIndex];
if ([buttonTitle isEqualToString:@"Text"]) {
AddTextViewController *addTextViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"addTextViewController"];
}
ビューコントローラをインスタンス化したので、どうしたらよいかわかりません。