Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UIImage *image = [Utilities standardImageNamed:element.url];
- UIImageView *imageView = [[UIImageView alloc] initWithImage:image];
- [views addObject:imageView];
- [Ani setPosition:imageView x:element.x y:element.y];
- [self addSubview:imageView];
- if( [ element.name isEqualToString:@"Button" ] ) {
- UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect];
- [button addTarget:self
- action:@selector(buttonCallback:)
- forControlEvents:UIControlEventTouchDown];
- [button setTitle:@"Show View" forState:UIControlStateNormal];
- button.frame = CGRectMake(0, 0, 160.0, 40.0);
- [imageView addSubview:button];
- }
Add Comment
Please, Sign In to add comment