我想使用创建一个欢迎标签,NSTimer
但它会通过一些警告显示
喜欢
未声明的选择器可隐藏和未使用的可变计时器
我还没有使用NSTimer
过一个可以告诉我即时通讯做错了的地方,而wt是正确的方法。当应用程序加载几分钟后必须消失时,我需要给一个欢迎消息
我已经尝试过这个即时通讯无法获得帮助
这是我必须在视图didload中使用的代码
NSTimer * timer = [NSTimer scheduledTimerWithTimeInterval:60 target:self selector:@selector(hideLabel:) userInfo:nil repeats:NO];
在情节提要中,我使用了要显示消息的ib标签
@property (strong, nonatomic) IBOutlet UILabel *wel;
请任何人告诉wt是制作此书的正确方法。
您尚未声明hideLabel method.hance会给出警告
[NSTimer scheduledTimerWithTimeInterval:60 target:self selector:@selector(hideLabel:) userInfo:nil repeats:NO];
-(void)hideLabel:(NSTimer *)timer{
myLabel.hidden=YES;
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句