views:

25

answers:

0

hi guys i am New to Iphone... i am developing Table View with image and Text but Over laps the image and text when with the old text i scrolls the table Can Any one help me... Here is my Code in cellForRowAtIndexPath... Thx in Advance... UIImage *img=[UIImage imageNamed:[imageArrray objectAtIndex:arc4random() %17]]; UIImageView *iview = [[UIImageView alloc] initWithFrame:CGRectMake(4.0f, 4.0f, 65.0f,60.0f)]; iview.image=img; [cell.contentView addSubview:iview];

UILabel *myLabel = [[UILabel alloc] initWithFrame:CGRectMake(72.0f, 0.0f, 320.0f,50.0f)];
myLabel.text = info.JokeTitle;
[cell.contentView addSubview:myLabel];