My code is below, but the animation just happens instantly, i.e. the view is no longer visible:
UIView *leftDoorView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.view.bounds.size.width /2, self.view.bounds.size.height)]; leftDoorView.backgroundColor = [UIColor greenColor]; leftDoorView.layer.anchorPoint = CGPointMake(0.0, 0.5); [self.view addSubview:leftDoorView]; leftDoorView.center = CGPointMake(0.0, self.view.bounds.size.height/2.0);
Not sure what I'm doing wrong - any help would be appreciated please.
source share