Problem in NSLog

Discussion in 'iOS Programming' started by iphonejudy, Jan 4, 2010.

  1. iphonejudy macrumors 6502

    iphonejudy

    Joined:
    Sep 12, 2008
    #1
    NSLog is not working.I cant see the message in the console.

    Can anyone tell me the solution?
     
  2. robj macrumors regular

    Joined:
    Dec 23, 2009
    Location:
    Madrid, Spain
    #2
    Maybe if you add some extra information to your problem anyone can help you.

    How are you calling NSLog?
     
  3. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #3
    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.
     
  4. Darkroom Guest

    Darkroom

    Joined:
    Dec 15, 2006
    Location:
    Montréal, Canada
    #4
    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. :eek:
     

Share This Page