If i have a string like "Help, Support and More" in an NSArray which is content of an UITableView it crashes on startup. If i remove the whitespace after "," there is no Problem.
Is there any solution for this?
This crashes:
cell.textLabel.text = @"Help, Support and More"; This works:
cell.textLabel.text = @"Help,Support and More"; Here is more code:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier]; //cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; } // Configure the cell. NSLog(@"%@", [[sportstypes objectAtIndex: [indexPath row]] title]); cell.textLabel.text = @"Tes t:, ,,,,,"; //cell.textLabel.text = @"Blubber"; return cell; } FIX: Xcode 4.6.2 app crashes on every second run Thanks to ice_2