title: cannot place methods in tableView: cellForRowAtIndexPath:
body: <p>I have an NSMutableString  named alphabets in my class. I put [alphabets characterAtIndex:i] or [alphabets length] in tableView: cellForRowAtIndexPath:. But when i use reloaddata the app crashes.</p>
  
  <p>Edit: Should I do all the calculations with alphabets outside the tableView and then pass an array of values to tableView.</p>
  
  <p>this is where "alphabets" appears</p>
  
  <p>in @interface</p>
  
  <pre><code>NSMutableString *alphabets;
  </code></pre>
  
  <p>@implementation</p>
  
  <pre><code>- (IBAction) textFieldDoneEditing: (id)sender {
  
      Logic *myLogic = [[Logic alloc] init];
      alphabets = [NSMutableString stringWithCapacity:0];
  
      alphabets = [myLogic formatSentence: sentenceTextField.text];
      alphabets = [myLogic makeAscending: alphabets];
  
      [logicTable reloadData];
  
      // removes keyboard
      [sentenceTextField resignFirstResponder];
  }
  
  - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
  
      static NSString *CellIdentifier = @"Cell";
  
      MyTableCell *cell = (MyTableCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier];
      if (cell == nil) {
          cell = [[[MyTableCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
      }
  
      // this causes all the problem  
      cell.textLabel.text = alphabets;
  
      return cell;
  }
  </code></pre>