質問編集履歴

2

追加

2019/05/21 06:55

投稿

amazon_106
amazon_106

スコア50

test CHANGED
File without changes
test CHANGED
@@ -24,7 +24,7 @@
24
24
 
25
25
  guard let imageUrl = post?.imageUrl else { return }
26
26
 
27
- // 原因コード
27
+ // 原因コード
28
28
 
29
29
  guard let likes = post?.likes else { return }
30
30
 
@@ -46,7 +46,7 @@
46
46
 
47
47
  postImageView.loadImage(with: post!.imageUrl)
48
48
 
49
- // 原因コード
49
+ // 原因コード
50
50
 
51
51
  likesLabel.text = "(likes) likes"
52
52
 

1

ツイあk

2019/05/21 06:55

投稿

amazon_106
amazon_106

スコア50

test CHANGED
File without changes
test CHANGED
@@ -76,6 +76,24 @@
76
76
 
77
77
  ```
78
78
 
79
+
80
+
81
+ ```
82
+
83
+ addSubview(likesLabel)
84
+
85
+ likesLabel.anchor(top: likeButton.bottomAnchor, left: leftAnchor, bottom: nil, right: nil, paddingTop: -4, paddingLeft: 8, paddingBottom: 0, paddingRight: 0, width: 0, height: 0)
86
+
87
+
88
+
89
+ addSubview(captionLabel)
90
+
91
+ captionLabel.anchor(top: likesLabel.bottomAnchor, left: leftAnchor, bottom: nil, right: rightAnchor, paddingTop: 8, paddingLeft: 8, paddingBottom: 0, paddingRight: 8, width: 0, height: 0)
92
+
93
+ ```
94
+
95
+
96
+
79
97
  上記の原因コードを追加後、画像1から画像2になってしまいます。
80
98
 
81
99
  画像1