-(IBAction)btnNextTapped
{
self.currentPhotoIndex++;
if([allPhotosArray count]>0) {
if(self.currentPhotoIndex>=[allPhotosArray count]) {
self.currentPhotoIndex=0;
}
NSLog(@"====== allphotos in this county :%d",[allPhotosArray count]);
mugImage.image = [UIImage imageWithData: [NSData dataWithContentsOfURL: [NSURL URLWithString: [allPhotosDict objectForKey:@"Photo"]]]];
}
}
когда я нажимал следующую кнопку, этот метод вызывался, но когда я щелкаю по следующей кнопке, изображение должно быть изменено, но здесь я не получаю следующее изображение,
Пожалуйста, помогите мне
Заранее спасибо