Guest User

Untitled

a guest
Feb 20th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         UIImage *image = [Utilities standardImageNamed:element.url];
  2.         UIImageView *imageView = [[UIImageView alloc] initWithImage:image];
  3.         [views addObject:imageView];
  4.         [Ani setPosition:imageView x:element.x y:element.y];
  5.         [self addSubview:imageView];
  6.        
  7.         if( [ element.name isEqualToString:@"Button" ] ) {
  8.             UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect];
  9.             [button addTarget:self
  10.                        action:@selector(buttonCallback:)
  11.              forControlEvents:UIControlEventTouchDown];
  12.             [button setTitle:@"Show View" forState:UIControlStateNormal];
  13.             button.frame = CGRectMake(0, 0, 160.0, 40.0);
  14.             [imageView addSubview:button];
  15.         }
Add Comment
Please, Sign In to add comment