質問編集履歴
1
誤字により一部訂正
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
これではExpression type '@lvalue CGRect' is ambiguous without more contextとエラーが出てしまいます。どう変更すればいいですか?
|
2
|
+
```
|
2
|
-
|
3
|
+
let titleLabel = UILabel(frame: CGRect(0, 0, view.frame.width - 32, view.frame.height))
|
3
4
|
titleLabel.text = "Home"
|
4
5
|
titleLabel.textColor = UIColor.white
|
5
6
|
navigationItem.titleView = titleLabel
|