2
我想要一个简单的应用程序与2个NSView时,当用户点击一个NSView隐藏和另一个显示的按钮,当它显示我想动画像它在办公室的工具按钮,但我不能弄清楚如何,如果有人尝试过这样或类似的事情会很好。如果你没有答案,那么你需要将文档归档,或告诉我必须动画的属性。动画自定义NSView绘图
我已经尝试动画帧
-(void)awakeFromNib
{
[NSTimer scheduledTimerWithTimeInterval:2.0 target:self selector:@selector(showFader:) userInfo:nil repeats:YES];
}
- (void)showFader: (NSTimer*)timer {
[[customer_s_view animator] setFrame:[customer_f_view frame]];
}
- (IBAction)searchfull:(id)sender{
if([customer_s_view isHidden]){
[customer_s_view setHidden:NO];
[customer_s_view setFrame:NSMakeRect(400.0, 700.0, 1, 1)];
[customer_f_view setHidden:YES];
}
帮助,这是一个演示,我要证明这个星期一
谢谢你的回答,但我正在开发一个桌面应用程序 – 2011-05-06 14:42:16