iOS 9 Segue Causes App To Freeze (no crash or error thrown)

So basically the segue was freezing because of the UITextView‘s I was using in the destinationViewController. The following fixed the issue: Delete all UITextView‘s Add new UITextView’s you must leave the default lorem imposed text and change this programmatically in the viewDidLoad() This was the fix for me, and from the research I have done … Read more

How do I create a segue that can be called from a button that is created programmatically?

Here is how to set up a segue so that it can be called programmatically. Control drag from the ViewController icon in the first view controller to the second view controller. Click on the segue arrow between the two view controllers, and in the Attributes Inspector on the right, give the segue an Identifier (tableau … Read more

Instead of push segue how to replace view controller (or remove from navigation stack)?

To expand on the various segues above, this is my solution. It has the following advantages: Can work anywhere in the view stack, not just the top view (not sure if this is realistically ever needed or even technically possible to trigger, but hey it’s in there). It doesn’t cause a pop OR transition to … Read more

‘Receiver () has no segue with identifier ‘addSegue’

I had this same problem and actually my problem was that I was calling WRONG: [self.navigationController performSegueWithIdentifier:@”ShowVerify” sender:self]; instead of CORRECT: [self performSegueWithIdentifier:@”ShowVerify” sender:self]; so check that you are calling correct performSegueWithIdentifier method 🙂

Prepare for Segue in Swift

This seems to be due to a problem in the UITableViewController subclass template. It comes with a version of the prepareForSegue method that would require you to unwrap the segue. Replace your current prepareForSegue function with: override func prepareForSegue(segue: UIStoryboardSegue!, sender: AnyObject!) { if (segue.identifier == “Load View”) { // pass data to next view … Read more

Passing Data between View Controllers in Swift

Let’s assumed we stand at the firstView go to the DetailView and want passing data from firstView to Detailview. To do that with storyboard, at the firstView we will have a method: override func prepareForSegue(segue: UIStoryboardSegue!, sender: AnyObject!) { if (segue.identifier == “segueTest”) { //Checking identifier is crucial as there might be multiple // segues … Read more

tech