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