我有两个变量,一个是appDelegate变量,它的值是50,但是在appDelegate变量中,它显示为0。
float newdose=vacinedose;
appDelegate.Same_Vaccination_Cost_Vaccination_Annually_No_Guarantee=newdose;
NSLog(@"After Dose Vaccine Dose is %.2f",newdose);发布于 2013-03-14 16:01:13
您需要初始化appDelegate变量。执行以下操作:
appDelegate=[UIApplication SharedApplication]https://stackoverflow.com/questions/15403934
复制相似问题