質問編集履歴

2

コード修正

2015/08/20 01:51

投稿

ariyu
ariyu

スコア10

test CHANGED
File without changes
test CHANGED
@@ -160,6 +160,16 @@
160
160
 
161
161
  }
162
162
 
163
+
164
+
165
+ override func didReceiveMemoryWarning() {
166
+
167
+ super.didReceiveMemoryWarning()
168
+
169
+ }
170
+
171
+ }
172
+
163
173
  ```
164
174
 
165
175
 

1

ソースの不要箇所削除

2015/08/20 01:50

投稿

ariyu
ariyu

スコア10

test CHANGED
File without changes
test CHANGED
@@ -48,10 +48,6 @@
48
48
 
49
49
 
50
50
 
51
- // ボタンを用意
52
-
53
- var addBtn: UIBarButtonItem!
54
-
55
51
  var myImageView: UIImageView!
56
52
 
57
53
  var infoLabel: UILabel!
@@ -62,23 +58,11 @@
62
58
 
63
59
  super.viewDidLoad()
64
60
 
65
-
66
61
 
67
- //遷移先の「戻る」ボタンのテキスト空文字化
68
-
69
- let backButtonItem = UIBarButtonItem(title: "", style: .Plain, target: nil, action: nil)
70
-
71
- navigationItem.backBarButtonItem = backButtonItem
72
-
73
-
74
62
 
75
63
  self.title = "FirstView"
76
64
 
77
65
  self.view.backgroundColor = UIColor.whiteColor()
78
-
79
- addBtn = UIBarButtonItem(barButtonSystemItem: .Add, target: self, action: "onClick")
80
-
81
- self.navigationItem.rightBarButtonItem = addBtn
82
66
 
83
67
 
84
68
 
@@ -91,22 +75,6 @@
91
75
 
92
76
 
93
77
  }
94
-
95
-
96
-
97
-
98
-
99
- // addBtnをタップしたときのアクション
100
-
101
- func onClick() {
102
-
103
- let PrefSelect = PrefSelectViewController()
104
-
105
- self.navigationController?.pushViewController(PrefSelect, animated: true)
106
-
107
- }
108
-
109
-
110
78
 
111
79
 
112
80