ios - local declaration of 'date format' hides instance variable? -
getting 7 warning messages these 3 statements :
// , grab date components same date hijricomponents = [hijricalendar components:(nsdaycalendarunit | nsmonthcalendarunit | nsyearcalendarunit) fromdate:[nsdate date] ];
[dateformat setdateformat:@"d/m/yyyy"]; nsdate *dateee = [dateformat datefromstring:datestr];
self.gdaylabel.text = [nsstring stringwithformat: @"%ld", (long)[gregoriancomponents day]]; self.gmonthlabel.text = [nsstring stringwithformat: @"%ld", (long)[gregoriancomponents month]]; self.gyearlabel.text = [nsstring stringwithformat: @"%ld", (long)[gregoriancomponents year]];
check xyzviewcontroller.h file. dateformat declared there property. in method has local variable same name. either rename local variable or use global one. – midhun mp 6 mins ago
Comments
Post a Comment