Thampuran
Thampuran

Reputation: 654

Is there is any way to programatically clear the console of Xcode during scene change/ function call?

I am developing an iOS app using cocos2d.

My question is:

Is there is any way to programatically clear the console of Xcode during scene change or function call?

I found several duplicates of my posts in stack overflow also, but nothing gave me a correct solution.

What I do not need:

What I will appreciate:

Thanks.

Upvotes: 2

Views: 96

Answers (1)

CodeSmile
CodeSmile

Reputation: 64477

This begs the question: why???

The best you can do is:

NSLog(@"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n");

A good way is to just copy&paste the contents of the log into a text editor, and do so before/after changing scenes and perhaps edit/crop the log in the text editor.

Upvotes: 4

Related Questions