title: iOS how to implement a long, scrollable log functionality in an app?
body: <p>I have a game that has a small console window which displays text messages about events that happen within the game. This console is a <code>UITextView</code>, one message per line. The code I have below works for test purposes, but over the course of the game, I expect that this log would grow up to be very long. </p>
  
  <p><strong>What is a good practice for implementing user-visible logging within an iOS game?</strong> Is it a table view, some custom class, mutable string, read/write to file, etc?</p>
  
  <pre><code>-(void)updateConsoleWithMessage:(NSString*)message
  {
      messageConsole.text = [NSString stringWithFormat:@"%@\n%@",message,messageConsole.text];
  
          if(messageConsole.text.length &gt; 0 ) {
              NSRange top = NSMakeRange(0, 1);
              [messageConsole scrollRangeToVisible:top];
          }
  
  }
  </code></pre>