Reputation: 7789
thanks for sending me answer in advance....I m the beginner in IPhone.
I really excited why we using #ifdef DEBUG in iphone.Also wanting information about how to use it and its limitation.
Upvotes: 2
Views: 464
Reputation: 21670
a code in a
#ifdef DEBUG
//some code
#endif
is executed only in the debug builds. Why we use it? Because you can add some logging into the debug builds in order to get information about your performance or just anything else you want to know about your code.
Upvotes: 5