Adding imageViews to next row of table view?

You can try some thing like bellow ... you basically check the present row number then build your required logic UITableViewCell *cell = nil; static NSString *AutoCompleteRowIdentifier = @"AutoCompleteRowIdentifier"; cell = tableView dequeueReusableCellWithIdentifier:AutoCompleteRowIdentifier; if (cell == nil) { cell = UITableViewCell alloc initWithStyle:UITableViewCellStyleDefault reuseIdentifier:AutoCompleteRowIdentifier autorelease; } int j=0; imageView1. Tag = j; if(0 == indexPath row) { UIImageView * imageView1 = UIImageView alloc initWithFrame:CGRectMake(25, 4, 80, 80) autorelease; UIImageView * imageView2 = UIImageView alloc initWithFrame:CGRectMake(115,4,80, 80) autorelease; UIImageView * imageView3 = UIImageView alloc initWithFrame:CGRectMake(205,4, 80, 80) autorelease; UIImageView * imageView4 = UIImageView alloc initWithFrame:CGRectMake(295,4, 80, 80) autorelease; imageView2. Tag = j+1; imageView3.

Tag = j+2; imageView4. Tag = j+3; cell. ContentView addSubview:imageView1; cell.

ContentView addSubview:imageView2; cell. ContentView addSubview:imageView3; cell. ContentView addSubview:imageView4; }else if(0 == indexPath row) { UIImageView * imageView5 = UIImageView alloc initWithFrame:CGRectMake(25, 4, 80, 80) autorelease; UIImageView * imageView6 = UIImageView alloc initWithFrame:CGRectMake(115,4,80, 80) autorelease; imageView5.

Tag = j+1; imageView6. Tag = j+2; cell. ContentView addSubview: imageView5; cell.

ContentView addSubview:imageView6; } for ( int I = 1; I.

You can try some thing like bellow ... you basically check the present row number then build your required logic ... UITableViewCell *cell = nil; static NSString *AutoCompleteRowIdentifier = @"AutoCompleteRowIdentifier"; cell = tableView dequeueReusableCellWithIdentifier:AutoCompleteRowIdentifier; if (cell == nil) { cell = UITableViewCell alloc initWithStyle:UITableViewCellStyleDefault reuseIdentifier:AutoCompleteRowIdentifier autorelease; } int j=0; imageView1. Tag = j; if(0 == indexPath row) { UIImageView * imageView1 = UIImageView alloc initWithFrame:CGRectMake(25, 4, 80, 80) autorelease; UIImageView * imageView2 = UIImageView alloc initWithFrame:CGRectMake(115,4,80, 80) autorelease; UIImageView * imageView3 = UIImageView alloc initWithFrame:CGRectMake(205,4, 80, 80) autorelease; UIImageView * imageView4 = UIImageView alloc initWithFrame:CGRectMake(295,4, 80, 80) autorelease; imageView2. Tag = j+1; imageView3.

Tag = j+2; imageView4. Tag = j+3; cell. ContentView addSubview:imageView1; cell.

ContentView addSubview:imageView2; cell. ContentView addSubview:imageView3; cell. ContentView addSubview:imageView4; }else if(0 == indexPath row) { UIImageView * imageView5 = UIImageView alloc initWithFrame:CGRectMake(25, 4, 80, 80) autorelease; UIImageView * imageView6 = UIImageView alloc initWithFrame:CGRectMake(115,4,80, 80) autorelease; imageView5.

Tag = j+1; imageView6. Tag = j+2; cell. ContentView addSubview: imageView5; cell.

ContentView addSubview:imageView6; } for ( int I = 1; I.

In my app I have a table view and I am adding 4 image view to the first row of my table view . Now I want to add the image view to the next row. How can I do that in the existing code please help.

I want mu imageView 5 and 6 to be in next row. How to do it? I am ramming my head against the wall looking for this.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions