Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 29th, 2012  |  syntax: None  |  size: 0.88 KB  |  hits: 19  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. IOS5 -[__NSCFDictionary nombre]: unrecognized selector sent to instance 0x6da25a0
  2. Evento* bean = [ListaEventos objectAtIndex:indexPath.row];    
  3. DetalleViewController *detalle = [self.storyboard    instantiateViewControllerWithIdentifier:@"Detalle"];
  4. NSLog(@"detalle: %@",[bean nombre]);//bean Log OK!!, but bean.nombre Error!! why?
  5.        
  6. @interface Evento : NSObject
  7.  
  8. @property (strong, nonatomic)  NSString *idevento;
  9. @property (strong, nonatomic)  NSString *nombre;
  10. @property (strong, nonatomic)  NSString *descripcion;
  11. @property (strong, nonatomic)  NSString *fecha;
  12. @property (strong, nonatomic)  NSString *telefono;
  13. @property (strong, nonatomic)  NSString *direccion;
  14.  
  15. @end
  16.        
  17. @implementation Evento
  18.  
  19. @synthesize idevento;
  20. @synthesize nombre;
  21. @synthesize descripcion;
  22. @synthesize fecha;
  23. @synthesize telefono;
  24. @synthesize direccion;
  25.  
  26. @end
  27.        
  28. [ListaEventos objectAtIndex:indexPath.row];