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

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

ios - Possible to get UIButton sizeThatFits to work? -