I want to send the myNumber values to the next controller in iphone app as normaaly do for NSString i am doing like this but it is not working
int mynumber=100;
NextViewController*targetController=[[NextViewController alloc]init];
targetController.mynumber=mynumber;
[self.navigationController pushViewController animated:YES];
NextViewController
int mynumber;
Implementation NextViewController
int mydata=mynumber;
In you
NextViewController.hfile declare apropertyof typeintwith var namemynumberlike this –then
synthesizeit inNextViewController.mnow you can
assignit as you are doing;