Last active
December 17, 2015 08:39
-
-
Save C4Examples/5581564 to your computer and use it in GitHub Desktop.
C4Control frame
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// C4WorkSpace.m | |
// Examples | |
// | |
// Created by Greg Debicki. | |
// | |
#import "C4WorkSpace.h" | |
@implementation C4WorkSpace { | |
C4Image *image1, *image2; | |
} | |
-(void)setup { | |
[self setupShapes]; | |
//you can change the frame of images and movies in the following way | |
image2.frame = CGRectMake(image1.center.x, image1.center.y, 400, 160); | |
} | |
-(void) setupShapes { | |
image1 = [C4Image imageNamed:@"C4Sky"]; | |
image2 = [C4Image imageNamed:@"C4Sky"]; | |
image1.center = self.canvas.center; | |
[self.canvas addImage:image1]; | |
[self.canvas addImage:image2]; | |
} | |
@end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment