我打算做的是,我有一个触发两个标签的按钮。最初隐藏了两个标签。我想让一个人立刻出现,而另一个秒后再点击按钮。
我可以添加什么来实现这一目标?
@IBOutlet var noDelayLabel: UILabel!
@IBOutlet var delayLabel: UILabel!
@IBAction func delayButton(_ sender: Any) {
noDelayLabel.isHidden = false
delayLabel.isHidden = false
}
答案 0 :(得分:1)
BOOST_LOG_GLOBAL_LOGGER_INIT(logger, src::severity_logger_mt) {
src::severity_logger_mt<boost::log::trivial::severity_level> logger;
// add attributes
logger.add_attribute("LineID", attrs::counter<unsigned int>(1)); // lines are sequentially numbered
logger.add_attribute("TimeStamp", attrs::local_clock()); // each log line gets a timestamp
return logger;
}