Hi,
I'm currently learning Objective-C from barely no programming experience in the past, it's going pretty well.
I'm struggling with a piece of code, and would appreciate if someone could help me out? The app is from a tutorial that I am adapting (obviously not going to put the app on the app store, just using it to learn).
Is there anyway of using setFrame on an array of images?
Here's the code:
The method is activated by a button press but the image appears in the wrong position and scaled up. I plan to add more images to the array in the near future by the way.
Any help would be appreciated.
Thanks!
I'm currently learning Objective-C from barely no programming experience in the past, it's going pretty well.
I'm struggling with a piece of code, and would appreciate if someone could help me out? The app is from a tutorial that I am adapting (obviously not going to put the app on the app store, just using it to learn).
Is there anyway of using setFrame on an array of images?
Here's the code:
Code:
-(void)flyStance {
[self cleanStance];
NSArray *imageArray = [[NSArray alloc] initWithObjects:
[UIImage imageNamed:@"owl2.png"], nil];
self.owl.animationImages = imageArray;
self.owl.animationDuration = 0.3;
self.owl.contentMode = UIViewContentModeBottomLeft;
[self.view addSubview:self.owl];
[self.owl startAnimating];
The method is activated by a button press but the image appears in the wrong position and scaled up. I plan to add more images to the array in the near future by the way.
Any help would be appreciated.
Thanks!