我正在写一个可可应用程序。我有一个隐藏的自定义视图。我想通过单击使其可见show
,我想通过单击隐藏它hide
。我的想法是让它像在窗户里一样。我的代码:
- (IBAction)show:(id)sender {
[customView makeKeyAndOrderFront:self];
}
- (IBAction)hide:(id)sender {
[customView close];
}
它对我不起作用。我该怎么做?
我正在写一个可可应用程序。我有一个隐藏的自定义视图。我想通过单击使其可见show
,我想通过单击隐藏它hide
。我的想法是让它像在窗户里一样。我的代码:
- (IBAction)show:(id)sender {
[customView makeKeyAndOrderFront:self];
}
- (IBAction)hide:(id)sender {
[customView close];
}
它对我不起作用。我该怎么做?