I have UIViewController in Viewbased application. I want to push another UIViewcontroller from it.
-(IBAction) Myfunction
{
MedicineSearchSystem *medicineSearchSystem = [[MedicineSearchSystem alloc] initWithNibName:@"MedicineSearchSystem" bundle:nil];
[self.parentViewController:medicineSearchSystem animated:YES]; // Crash here
}
UINavigationControlleras its parent. It appears that your code may have gotten mangled when you posted it, but the relevant method ispushViewController:animated: