iOS – Push the view controller from the modal view from the storyboard

I am using a storyboard and have a modal screen, and then I need to push other view controllers so that I can select items for the modal view (similar to the iPhone calendar application Add entry to the program). So I want to start from:

Navigation Controller> VC> Modal View Controller> ??? Here, I want to push VC so that I can select an item Return to the modal view.

How can I make this possible because I currently receive the error “Push segues can only be used when the source controller is managed by a UINavigationController instance.”

Ok, so I set it up like you said now, I now encounter an error when trying to set properties on the view controller (I used the push controller before), use the following:

< p>

SetTransactionDateViewController *stdvc = (SetTransactionDateViewController *)[segue destinationViewController]; 
// Get the day to pass to the select date controller
stdvc.transactionDate = [Utilities convertStringToDate: cellDate.detailTextLabel.text:FORMAT_DD_MMM_YYYY];

“[UINavigationController setTransactionDate:]: Unrecognized selector sent to instance”

When you assign a view to be presented modally, you need to make sure that this view is embedded in the UINavigationViewController. The navigation controller is required so that you can proceed as you describe Segmentation.

Your storyboard should look like this:

I am using a storyboard and have a modal screen , And then I need to push other view controllers so that I can select items for the modal view (similar to adding entries in the iPhone calendar app). So I want to start from:

Navigation controller > VC> Modal View Controller> ?? ?Here, I want to push the VC so that I can select an item to return to the modal view.

How can I make this possible because I currently receive the error “Push segues can only be done in source control The controller is used when the UINavigationController instance is managed.”

Ok, so I set it as you said now, I now encounter an error when trying to set properties on the view controller (I used the Is a push controller), use the following content:

SetTransactionDateViewController *stdvc = (SetTransactionDateViewController *)[segue destinationViewController]; 
// Get the day to pass to the select date controller
stdvc.transactionDate = [Utilities convertStringToDate:cellDate.detailTextLabel.text:FORMAT_DD_MMM_YYYY];

“[UINavigationController setTransactionDate:]: Unrecognized selector sent to the instance”

When you assign a view to be presented modally, you need to make sure that this view is embedded in the UINavigationViewController. The navigation controller is required so that you can describe it like you Segment like this.

Your storyboard should look like this:

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 3885 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.