how to NSLOG an int

Tried %u and %@ and %d
i feel dumb but i can't get this nslog to work. Please help.
sorry, the screen shot should have shown NSLog("columncounter is %d", columnCounter); which gives me the same error
Who is Participating?
darbid73Connect With a Mentor Commented:
Try this

NSLog(@"Columncounteris %i", i); 

Open in new window

    %i, %d signed integer
    %u unsigned integer
    %f float
    %@ object
Mark_CoAuthor Commented:
yeah, it's strange but it isn't working
Mark_CoAuthor Commented:
for (int i = 0; i < columnCounter; i++)
                    NSLog("columncounter is %i", i);
it won't work
What is different between my line and yours?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.