title: xcode : how to display triangle of "*" in ios simulator
body: <p>i am trying practice to make different kinds of triangle in Xcode.
  i tried to make simple triangle and display it to the iOS simulator.but i failed every time.</p>
  
  <p>i am trying to get some kind of output as below.</p>
  
  <pre><code>*
  * *
  * * *
  * * * *
  * * * * *
  </code></pre>
  
  <p>i know the logic of it,but i don't know how to display it to the simulator.this is my code with that i am trying to achieve the output. </p>
  
  <pre><code>for (int i=0; i&lt;5; i++)
  {
      NSLog(@"%i",*);
  
      for (int j=0; j&lt;=i; j++)
      {
          txtview.text=[NSString stringWithFormat:@"%i ",*];
      }
  
      txtview.text=@"/n";
   }
  </code></pre>
  
  <p>i am currently trying with the textview.i know it is totally wrong because textview always display the last object of for-loop.
  but what can i do,if i want to display such kind of output in simulator?
  what kind of controls should i use if textview is not working?
  please help.
  thanks in advance.</p>