0
我想要用户点击按钮时的效果。条形图中的数据标签在动画中消失。更改alpha值从1到0如何为核心绘图数据标签添加动画?
这就是我要做的:
[UIView animateWithDuration:0.5
delay:1.0
options: UIViewAnimationCurveEaseOut
animations:^{
[self.hostingView.hostedGraph.allPlots firstObject].showLabels = showLabel;
}
completion:^(BOOL finished){
NSLog(@"Done!");
}];
}
但动画不显示。有什么建议?