S'il vous plaît aidez-moi! Je fais une application comme un diaporama avec le dos, le bouton précédent pour changer l'image un par un. Mais quand j'utilise une grande image, il plante. Maintenant, j'utilise 64 photos jpg, taille ~ 20kb/1pic.Utiliser UIImageView pour faire une application comme la photo de l'iPhone Galerry
Aidez-moi ou je meurs! (U peut ajouter nick hoangtuanfithou, s'il vous plaît) le code comme ça:
// image Init Tableau
-(void)InitImageArray1
{
myAnimationImages1 = [[NSMutableArray alloc] init];
for (int i = 0; i < 24; i++)
{
NSAutoreleasePool *poolArray=[[NSAutoreleasePool alloc] init];
NSString *fileName = [NSString stringWithFormat:@"001 (%d)",i];
image = [UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:fileName ofType:@”jpg”]];
[myAnimationImages1 addObject:image];
[poolArray release];
}
}
// Changer l'image self.mainImage.image = [self.myAnimationImages1 objectAtIndex: animationImageArrIndex];