0

Whenever when I press build, it would give me the SIGABORT sign and goes back to the code. Do I need a usable storyboard view or without it I could see the output in the Debug Area

The code I used was

for (PokemonAbility *theability in items) {

 NSLog(@"Number: %@  Name: %@ Generation: %@ Desc: %@",theability.rowid, theability.abilityname, theability.abilitygeneration, theability.abilitydesc);

 }

Referenced from: Code Reference

Pang Zi Yang
  • 95
  • 1
  • 1
  • 5

1 Answers1

1

Hard to tell from what you wrote, but I bet that you're using raw data from SQLite, which is a C string, and using it in NSLog as an NSString. Try

[NSString stringWithCString:theability.rowid];

etc.

Owen Hartnett
  • 5,925
  • 2
  • 19
  • 35