我正在尝试通过以下代码更改标签项的标题,我必须在awakeFormNib()中编写该代码,但是由于某些情况,我必须在viewdidLoad()中更改标题。我正在使用Swift。
override func awakeFromNib() {
self.title = NSLocalizedString("Hello World", tableName: "xxx", comment: "");
}
答案 0 :(得分:4)
我是使用viewdidload()
中的以下代码完成的<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class="container">
<div class="header"><span class="glyphicon glyphicon-triangle-right">Expand</span>
</div>
<div class="content">
<ul>
<li>This is just some random content.</li>
<li>This is just some random content.</li>
<li>This is just some random content.</li>
<li>This is just some random content.</li>
</ul>
</div>
</div>