I have an Iphone application in which I combine two arrays and display them in the same table. The problem here is that I was unable to reposition the detailed text label in the cell. Here is my `
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier] autorelease]; UIImageView* img = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"cell_with_arrow.png"]]; [cell setBackgroundView:img]; [img release]; } if(newssarray==nil||[newssarray count]==0) { } else { NSDictionary *dicttable=[newssarray objectAtIndex:indexPath.row]; head=[dicttable objectForKey:@"news"]; head1=[dicttable objectForKey:@"name"]; NSString *sub=[dicttable objectForKey:@"created"]; NSLog (@"%@",head); [[cell viewWithTag:12] removeFromSuperview]; [[cell viewWithTag:13] removeFromSuperview]; [[cell viewWithTag:14] removeFromSuperview]; UIButton *shopLabel=[self buttonWithText:head andFrame:CGRectMake(49, 12, 250,5)] ; shopLabel.tag=12;
`can someone help me achieve this?
source share