Thursday, 15 April 2010

ios - local declaration of 'date format' hides instance variable? -


Receiving 7 warning messages for these three statements:

  // and those dates Hold components to hijriComponents = [hijriCalendar component: (NSDayCalendarUnit | NSMonthCalendarUnit | NSYearCalendarUnit) to date: [NSDT date]];  

  [dateFormat setDateFormat: @ "d / m / yyyy"]; NSDT * databases = [dateformat defrostrestring: date STR];  

  self.gDayLabel.text = [NSString stringWithFormat: @ "% ld", (long) [Gregorian Companions Day]]; Self.gMonthLabel.text = [NSString stringWithFormat: @ "% ld", (long) [gregorianComponents month]]; Self.gYearLabel.text = [NSString stringWithFormat: @ "% ld", (long) [GregorianConnectors Year]];  

Check that the date format of the XYZViewController.h file has been declared as an asset . After this the method also has a local variable named after it. Either rename the local variable or use the global one - Midhun MP3s 6 minutes ago


No comments:

Post a Comment