当我试图在我的中显示泰米尔语字符时,我UITableview
无法顺利滚动,tableview
但是如果我用英文字符替换泰米尔语字符,滚动就没有问题。
有什么解决办法吗?
提前致谢 !!!
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = (UITableViewCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if(cell == nil)
{
cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease];
cell.selectionStyle = UITableViewCellSelectionStyleNone;
cell.backgroundColor=[UIColor yellowColor];
UILabel *lblTitle = [[UILabel alloc]init];
[lblTitle setTag:100];
[lblTitle setBackgroundColor:[UIColor clearColor]];
[lblTitle setFont:[UIFont fontWithName:@"Helvetica" size:13]];
[lblTitle setFont:[UIFont boldSystemFontOfSize:14]];
[lblTitle setTextColor:[UIColor blackColor]];
[cell.contentView addSubview:lblTitle];
[lblTitle release];
}
UILabel *plblTitle = (UILabel*) [cell.contentView viewWithTag:100];
News *pNewsObj = [appDelegate.CurrentNewsArray objectAtIndex:indexPath.row];
plblTitle.text = pNewsObj.pHeadLine;
return cell;
}