我正在尝试从我声明的const对中打印出一个字符串
[Authorize(Policy = "Read")]
public class HomeController : Controller
{
}
但是,在此功能中,它允许我打印第一个值没有问题。当我想要打印第二个值时,它会让我添加&然后打印出地址的符号。我如何解决这个问题,以便打印出实际价值。
let textView = UITextView()
let containerView = UIView()
textView.translatesAutoresizingMaskIntoConstraints = false
containerView.addSubview(textView)
textView.leadingAnchor.constraint(equalTo: containerView.leadingAnchor).isActive = true
textView.topAnchor.constraint(equalTo: containerView.topAnchor).isActive = true
textView.trailingAnchor.constraint(equalTo: containerView.trailingAnchor).isActive = true
textView.bottomAnchor.constraint(equalTo: containerView.bottomAnchor).isActive = true
textView.heightAnchor.constraint(equalToConstant: 100).isActive = true
let stackView = UIStackView(arrangedSubviews: [containerView])
候选函数不可行:没有来自'const std :: __ 1 :: vector>'的已知转换第一个参数的'const void *';使用&
获取参数的地址