How can I find a line number in Xcode?

Voloda2 picture Voloda2 · Mar 19, 2012 · Viewed 50.1k times · Source

I have a function in my *.m file

- (void)myFunction {}

How can I find the line number this function?

Answer

Simon Whitaker picture Simon Whitaker · Mar 19, 2012

You can go to:

Xcode > Preferences > Text Editing

then tick "Line numbers". Go to your method and you'll see the appropriate line number shown in the left-hand border of the text editor.