1
for(int i=0;i<[self.printers count]; i++)
    {
        PublicPrivateEvent *printerselection = [printers objectAtIndex:i];

        CGFloat latt = [printerselection.latitude floatValue]; //Here is broken
        CGFloat lng=[printerselection.longtitude floatValue];
         pointsCoOrds[index++] = CLLocationCoordinate2DMake(latt,lng);

    }

Hi All, Im trying to get the value from PublicPrivateEvent class. But I dont know for what I cant handle it? I have this problem: _NSCFConstantString latitude]: unrecognized selector sent to instance .. DO you have any idea? Thanks in advance.

leppie
  • 115,091
  • 17
  • 196
  • 297
santa
  • 147
  • 1
  • 4
  • 16
  • 2
    `printers` contains `NSString`s and not `PublicPrivateEvent`s. –  Dec 23 '12 at 13:53
  • @property (nonatomic, assign) NSString *latitude; In publicprivateEvent I have latitude as NSString? So i didnt understand what do you mean? – santa Dec 23 '12 at 14:04
  • I was not talking about `latitude`. Read my comment again. –  Dec 23 '12 at 14:06
  • I read. But I couldnt understand what do you mean? – santa Dec 23 '12 at 14:21
  • Show us how the `printers` array is create. – thelaws Dec 23 '12 at 14:33
  • I have my printersArray in previous viewcontroller, and Im trying to send this array to other viewcontroller eventmap.printers=[xmlEventParser getprinters]; like this I am transferring. – santa Dec 23 '12 at 14:48

0 Answers0