如何在Swift中做NSlog - 2.0

时间:2015-07-03 14:42:07

标签: autolayout constraints iso nsautolayout

我有一个查询这是我的代码...

  -(void)hello{
     NSLog(@"there is nothing to show")
}

1 个答案:

答案 0 :(得分:0)

在Swift中,字符串不是用@ before

编写的
-(void)hello{
     NSLog("there is nothing to show")
}

您也可以使用print(),但我总是使用NSLog,因为您可以轻松地将NSLog重定向到文件。