Claude31 thanks for the reply. You are correct. This is what I did. However I have some logic in the button's IBAction which then requires me to use performSegueWithIdentifier. This code snippet may clarify why...
- (IBAction)cancelButtonPressed:(id)sender
{
if (self.objectId != nil)
{
[self performSegueWithIdentifier:@"cancelSaveExisting" sender:nil];
}
else
{
[self performSegueWithIdentifier:@"cancelCreate" sender:nil];
}
}
I use the same viewcontroller for creating an object based on user input as well as when they want to edit that data.
Either than that, everything you mentioned is the same.
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: