Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

iphonejudy

macrumors 6502
Original poster
NSLog is not working.I cant see the message in the console.

Can anyone tell me the solution?
 
If you NSLog() a nil object, nothing gets outputted. You should always use the format NSLog(@"%@", obj); when using non-constant strings.

Either way, post your code. Always post your code when you're having a problem. Otherwise everyone else is just guessing and wasting their time.
 
sometimes my logs do not appear in the xcode console, but then i realize that i relaunched the app from the simulator rather than from xcode. 😱
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.