i have application in there part on button click inserting values database , on same button action view controller being called. code button action;
//this button action -(ibaction)start:(id)sender{ gjourney = mtextjourney.text; glocation = mtextlocation.text; gmessage =mdescription.text; // insert database function [self saveindatabase]; app=(journeyappdelegate *)[[uiapplication sharedapplication]delegate]; //this class want called when click on button breadcrumbviewcontroller *st = [[breadcrumbviewcontroller alloc]initwithnibname:@"breadcrumbviewcontroller" bundle:nil]; [app.navcontroller pushviewcontroller:st animated:yes]; }
my problem when start button clicked data saved in database breadcrumviewcontroller class not called. may problem?
-(ibaction)start:(id)sender{ gjourney = mtextjourney.text; glocation = mtextlocation.text; gmessage =mdescription.text; // insert database function [self saveindatabase]; viewcontroller=[viewcontroller alloc ] initwithnibname:@"viewcontroller"]; [self.navigationcontroller pushviewcontroller:viewcontroller]; [viewcontroller release]; }
this code should work fine.
Comments
Post a Comment