質問編集履歴

4

コード編集

2018/11/02 07:50

投稿

yutopc7788
yutopc7788

スコア12

test CHANGED
File without changes
test CHANGED
@@ -52,11 +52,29 @@
52
52
 
53
53
  super.viewDidLoad()
54
54
 
55
+ let heightConstraint = NSLayoutConstraint(
56
+
57
+ item: self.view,
58
+
59
+ attribute: NSLayoutConstraint.Attribute.height,
60
+
61
+ relatedBy: NSLayoutConstraint.Relation.equal,
62
+
63
+ toItem: nil,
64
+
65
+ attribute: NSLayoutConstraint.Attribute.notAnAttribute,
66
+
67
+ multiplier: 0.0,
68
+
69
+ constant: 400)
70
+
55
71
 
56
72
 
57
73
  var v = UINib(nibName:"KeyboardView", bundle:nil).instantiate(withOwner: self,options:nil)[0] as! UIView
58
74
 
59
75
  self.inputView?.addSubview(v)
76
+
77
+ self.view.addConstraint(heightConstraint)
60
78
 
61
79
  }
62
80
 
@@ -96,6 +114,8 @@
96
114
 
97
115
  }
98
116
 
117
+
118
+
99
119
  ```
100
120
 
101
121
 

3

回答後画像追記

2018/11/02 07:50

投稿

yutopc7788
yutopc7788

スコア12

test CHANGED
File without changes
test CHANGED
@@ -12,7 +12,7 @@
12
12
 
13
13
  →変更後
14
14
 
15
- ![イメージ説明](16216f8c61c37c38a546842319df1521.png)
15
+ ![イメージ説明](a391487eacb9234d17c087004a2174f3.png)
16
16
 
17
17
 
18
18
 
@@ -110,4 +110,4 @@
110
110
 
111
111
  →変更後
112
112
 
113
- ![イメージ説明](095df43791fbd5924e4916a87f732d3e.png)
113
+ ![イメージ説明](c95d8a23ea0b97f8bd05a8e680459359.png)

2

画像追記

2018/11/02 07:26

投稿

yutopc7788
yutopc7788

スコア12

test CHANGED
File without changes
test CHANGED
@@ -12,7 +12,7 @@
12
12
 
13
13
  →変更後
14
14
 
15
- ![イメージ説明](343d4e23dbdbbfca22a3145ead1e8e26.png)
15
+ ![イメージ説明](16216f8c61c37c38a546842319df1521.png)
16
16
 
17
17
 
18
18
 

1

回答後画像追記

2018/11/02 07:23

投稿

yutopc7788
yutopc7788

スコア12

test CHANGED
File without changes
test CHANGED
@@ -9,6 +9,10 @@
9
9
  ■シュミレーター
10
10
 
11
11
  ![イメージ説明](d9c090f196cac83bbd0b129586302c20.png)
12
+
13
+ →変更後
14
+
15
+ ![イメージ説明](343d4e23dbdbbfca22a3145ead1e8e26.png)
12
16
 
13
17
 
14
18
 
@@ -103,3 +107,7 @@
103
107
  ■viewの設定画面
104
108
 
105
109
  ![イメージ説明](9f03f7d5e56706324fa77ffcb5e8297c.png)
110
+
111
+ →変更後
112
+
113
+ ![イメージ説明](095df43791fbd5924e4916a87f732d3e.png)