I am stuck trying to animate a UIView that I created on the Main.StoryBoard.
I created the outlet for it in my ViewController.h file.
@property (strong, nonatomic) IBOutlet UIImageView *Player;
The animation I attempted was:
- (void) PlayerMoves {
[UIView animateWithDuration:0.2 delay:0 options:UIViewAnimationOptionCurveLinear animations: self.Player.center = CGPointMake(self.Player.center.x, self.Player.center.y -50) completion:nil];
}
Anything I do, it tells me that I have an error.
Sending 'CGPoint' (aka 'struct CGPoint') to parameter of incompatible type 'void (^ _Nonnull)(void)'