Note that there are some explanatory texts on larger screens.

plurals
  1. POCan't get subview animation to appear even after alloc :)
    primarykey
    data
    text
    <p>I have a subview loaded into an UIView. In the subview's .m file I have the following:</p> <pre><code>- (void)startAnimation { // Array to hold png images imageArray = [[NSMutableArray alloc] initWithCapacity:22]; animatedImages = [[UIImageView alloc] initWithImage:viewForImage]; // Build array of images, cycling through image names for (int i = 1; i &lt; 22; i++){ [imageArray addObject:[UIImage imageNamed:[NSString stringWithFormat:@"image%d.png", i]]]; } animatedImages.animationImages = [NSArray arrayWithArray:imageArray]; // One cycle through all the images takes 1 seconds animatedImages.animationDuration = 2.0; // Repeat forever animatedImages.animationRepeatCount = 0; // Add subview and make window visible [viewForMovie addSubview:animatedImages]; // Start it up animatedImages.startAnimating; NSLog(@"Executed"); } </code></pre> <p>Please be noted that I have in the .h file:</p> <pre><code>UIImageView *animatedImages; NSMutableArray *imageArray; UIView *viewForMovie; @property(nonatomic,retain)IBOutlet UIView *viewForMovie; </code></pre> <p>and in the .m file:</p> <pre><code>@synthesize viewForMovie; </code></pre> <p>and I have connected viewForMovie to a UIView in IB. I've been on this for several hours now and have tried many variations I've found on the web but cannot get it to work. There are no errors and the other GUI graphics in the subview appear very nicely....but the animation just doesn't appear over top where it should. Also the NSlog reports that the method has in fact been called from the parent. Can anyone see any blaring issues? Thx. PS: I'm pretty new at this.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload