Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I find a line number in Xcode?

Tags:

xcode

ios

xcode4

I have a function in my *.m file

- (void)myFunction {} 

How can I find the line number this function?

like image 581
Voloda2 Avatar asked Mar 19 '12 12:03

Voloda2


2 Answers

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.

like image 70
Simon Whitaker Avatar answered Oct 01 '22 20:10

Simon Whitaker


Go to Xcode Preferences > Text Editing > Show: Line numbers to show the line numbers on the editor.

like image 35
neilvillareal Avatar answered Oct 01 '22 22:10

neilvillareal