title: Reverse NSString recursively in category
body: <p>I made this <strong>category</strong> for reversing an <code>NSString</code> in a <strong>recursive</strong> way. I'm getting the correct answer. But I'm not sure if this is okay with <strong>memory management</strong>. I don't know much about memory management in Objective-C.</p>
  
  <p>Any other efficient way would be highly admirable.</p>
  
  <pre><code>-(NSString *)reverseString{
      if ([self length]&lt;2) {
          return self;
      } else {
          return [[[self substringFromIndex:1] reverseString] stringByAppendingString:[self substringToIndex:1]];
      }
  }
  </code></pre>
  
  <p>However, this question is similar to <a href="https://stackoverflow.com/questions/6720191/reverse-nsstring-text">Reverse NSString text</a> but not the duplicate because here I'm implementing it with recursion. And I specifically asked about the memory consumption not for any code example.</p>