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

Popular posts from this blog

c# - ItextSharp font color issue in ver 5.5.4+ -

jquery - Multiple issues with pushstate: history, loading, calling functions -

ios - retrievePeripherals deprecated in IOS7 how to substitude it with retrievePeripheralsWithIdentifiers -