Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. CGRect imageViewFrame;
  2. if (centerSymbols)
  3. imageViewFrame = CGRectMake(self.view.bounds.size.width/2.0 - bigness/2.0, self.view.bounds.size.height/2.0 - bigness/1.0, bigness, bigness);
  4. else
  5. imageViewFrame = CGRectMake(touchPoint.x - bigness/2.0, touchPoint.y - bigness/1.0, bigness, bigness);
  6. UIImageView *anImageView = [[UIImageView alloc] initWithFrame:imageViewFrame];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement