comment afficher des images à l'horizontale UIscrollView par programmation

J'ai eu des images pour l'Url.et puis de les afficher sur le SCrollView.Mon code comme ceci

 NSMutableArray *al=[NSJSONSerialization JSONObjectWithData:webData options:0 error:nil];
for (NSDictionary *diction in al)
{
NSString *geting =[diction valueForKey:@"dealimage"];
NSLog(@"dealimage is %@",geting);
NSData *getdata=[[NSData alloc]initWithData:[NSData dataFromBase64String:geting]];
NSLog(@"good day %@",getdata);
dataimages=[UIImage imageWithData:getdata];
NSLog(@"dataimages %@",dataimages);
[imagesarray addObject:dataimages];
}
scrollView=[[UIScrollView alloc]init];
scrollView.delegate = self;
scrollView.scrollEnabled = YES;
int scrollWidth = 100;
scrollView.contentSize = CGSizeMake(scrollWidth,100);
scrollView.frame=CGRectMake(0, 0, 320, 100);
scrollView.backgroundColor=[UIColor yellowColor];
[self.view addSubview:scrollView];
int xOffset = 0;
imageView.image = [UIImage imageNamed:[imagesName objectAtIndex:0]];
for(int index=0; index < [imagesName count]; index++)
{
UIImageView *img = [[UIImageView alloc] init];
img.bounds = CGRectMake(10, 10, 50, 50);
img.frame = CGRectMake(5+xOffset, 0, 160, 110);
NSLog(@"image: %@",[imagesName objectAtIndex:index]);
img.image = [UIImage imageNamed:[imagesName objectAtIndex:index]];
[images insertObject:img atIndex:index];
scrollView.contentSize = CGSizeMake(scrollWidth+xOffset,110);
[scrollView addSubview:[images objectAtIndex:index]];
xOffset += 170;
}

mon Problème est le ScrollView est de l'Affichage, mais les Images ne sont pas ajouter Alors merci de me dire ce qui n'allait pas dans mon code

maintenant, j'ai besoin comme ce comment afficher des images à l'horizontale UIscrollView par programmation

Je sais comment obtenir des images pour l'Url.maintenant, j'ai besoin d'afficher des images Horizontales ScrollView Donc Merci de me donner une idée sur les images .

Merci à l'avance

Pourquoi avez-vous commenter "s'il vous Plaît regarder une fois ma question" à chaque réponse que vous obtenez?
désolé, mon intention est que je suis changé en question, de sorte plaisanterie, a laissé entendre à tous

OriginalL'auteur | 2014-07-19