मेरे कोड के साथ एनिमेट नीचे है, लेकिन एनीमेशन सिर्फ तुरन्त अर्थात होता है दृश्य और दिखाई नहीं देता:अंक CATransform3DRotate
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); //compensate for anchor offset
CATransform3D transform = CATransform3DIdentity;
transform.m34 = -1.0f/500.0;
transform = CATransform3DRotate(transform, M_PI_2, 0, 1, 0);
[UIView animateWithDuration:1.0 animations:^{
leftDoorView.layer.transform = transform;
}];
यकीन है कि मैं गलत क्या कर रहा हूँ नहीं - किसी भी मदद कृपया सराहना की जाएगी।
मैंने अभी आपके कोड को एक ऐप केडिडएपियर में कॉपी किया है, और यह एनीमेशन को सही तरीके से दिखाता है। –