Skip to content

Instantly share code, notes, and snippets.

@C4Examples
Last active December 17, 2015 08:39
Show Gist options
  • Save C4Examples/5581564 to your computer and use it in GitHub Desktop.
Save C4Examples/5581564 to your computer and use it in GitHub Desktop.
C4Control frame
//
// 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