teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

14

ok

2018/01/05 02:57

投稿

tomo39-.
tomo39-.

スコア27

title CHANGED
File without changes
body CHANGED
@@ -1,5 +1,3 @@
1
- こんにちは。はじめまして。
2
-
3
1
  xcode 7.3、swift 2.2, cocoapods 1.0.0.beta.2 環境でプロジェクトを進めてきています。
4
2
  正しくプロパティからデータが取得されないのなぜでしょうか。
5
3
  (参照:http://webfood.info/swift-rss-reader/)

13

コードの変更

2018/01/05 02:57

投稿

tomo39-.
tomo39-.

スコア27

title CHANGED
File without changes
body CHANGED
@@ -54,7 +54,7 @@
54
54
 
55
55
  var controllers : [UIViewController] = []
56
56
 
57
- var feeds: [Dictionary<String, String>] =
57
+ let feeds: [Dictionary<String, String>] =
58
58
  [
59
59
  [
60
60
  "link": "https://ajax.googleapis.com/ajax/services/feed/load?v=1.0&q=http://menthas.com/top/rss",

12

内容

2018/01/04 15:18

投稿

tomo39-.
tomo39-.

スコア27

title CHANGED
File without changes
body CHANGED
@@ -111,7 +111,7 @@
111
111
 
112
112
  ![イメージ説明](4a168cfb99be7253ddfdbe6197fd82d7.jpeg)
113
113
 
114
- こちら確認できません。
114
+ こちら から確認できません。
115
115
  ウェブサイト上にもある、オープンソースコードについてです。
116
116
  https://github.com/tarky/RssReaderApp/tree/connect-api
117
117
 

11

内容

2018/01/04 12:46

投稿

tomo39-.
tomo39-.

スコア27

title CHANGED
File without changes
body CHANGED
@@ -1,8 +1,8 @@
1
1
  こんにちは。はじめまして。
2
2
 
3
- xcode 7.3、swift 2.2, cocoapods 1.0.0.beta.2 でという環境でプロジェクトを進めてきています。
3
+ xcode 7.3、swift 2.2, cocoapods 1.0.0.beta.2 環境でプロジェクトを進めてきています。
4
- 詳しくは下記ホームページを拝見して欲しいです。正しくプロパティからデータが取得されないのなぜでしょうか。
4
+ 正しくプロパティからデータが取得されないのなぜでしょうか。
5
- (http://webfood.info/swift-rss-reader/)
5
+ 参照:http://webfood.info/swift-rss-reader/)
6
6
 
7
7
  ライブラリインストールをしました。
8
8
  実装後、メニューバーにはタイトルが表示されるものの、

10

オープンソースコード

2018/01/04 12:42

投稿

tomo39-.
tomo39-.

スコア27

title CHANGED
File without changes
body CHANGED
@@ -112,5 +112,7 @@
112
112
  ![イメージ説明](4a168cfb99be7253ddfdbe6197fd82d7.jpeg)
113
113
 
114
114
  こちらが確認できません。
115
+ ウェブサイト上にもある、オープンソースコードについてです。
116
+ https://github.com/tarky/RssReaderApp/tree/connect-api
115
117
 
116
118
  どうぞよろしくお願いします。

9

コー度

2018/01/04 09:27

投稿

tomo39-.
tomo39-.

スコア27

title CHANGED
File without changes
body CHANGED
@@ -1,11 +1,10 @@
1
1
  こんにちは。はじめまして。
2
2
 
3
3
  xcode 7.3、swift 2.2, cocoapods 1.0.0.beta.2 でという環境でプロジェクトを進めてきています。
4
- 恐れ入りますが、ハマってしまいました。エラー自体もでてきません。。。
5
- 詳しくは下記ホームページを拝見して欲しいです。
4
+ 詳しくは下記ホームページを拝見して欲しいです。正しくプロパティからデータが取得されないのなぜでしょうか。
6
5
  (http://webfood.info/swift-rss-reader/)
7
6
 
8
- ライブラリインストールまで、できました。
7
+ ライブラリインストールをしました。
9
8
  実装後、メニューバーにはタイトルが表示されるものの、
10
9
  ウェブデーターが表示されず困っています。
11
10
 

8

内容

2018/01/04 08:52

投稿

tomo39-.
tomo39-.

スコア27

title CHANGED
@@ -1,1 +1,1 @@
1
- SwiftyJSONについて。お助け願います
1
+ SwiftyJSONについて。
body CHANGED
@@ -1,4 +1,4 @@
1
- こんにちは。はじめまして
1
+ こんにちは。はじめまして
2
2
 
3
3
  xcode 7.3、swift 2.2, cocoapods 1.0.0.beta.2 でという環境でプロジェクトを進めてきています。
4
4
  恐れ入りますが、ハマってしまいました。エラー自体もでてきません。。。

7

コード

2018/01/04 08:51

投稿

tomo39-.
tomo39-.

スコア27

title CHANGED
File without changes
body CHANGED
@@ -83,36 +83,6 @@
83
83
  controllers.append(feedController)
84
84
  }
85
85
 
86
-
87
-
88
- let params: [CAPSPageMenuOption] = [
89
- .ScrollMenuBackgroundColor(UIColor.blackColor()),
90
- .ViewBackgroundColor(UIColor.whiteColor()),
91
- .SelectionIndicatorColor(UIColor.orangeColor()),
92
- .MenuItemFont(UIFont(name: "HelveticaNeue", size: 15.0)!),
93
- .MenuHeight(80.0),
94
- .MenuItemWidth(90.0),
95
- .CenterMenuItems(true)
96
- ]
97
-
98
- pageMenu = CAPSPageMenu(
99
- viewControllers: controllers,
100
- frame: CGRectMake(
101
- 0.0, 0.0, self.view.frame.width, self.view.frame.height
102
- ),
103
- pageMenuOptions: params
104
- )
105
-
106
- self.addChildViewController(pageMenu!)
107
- self.view.addSubview(pageMenu!.view)
108
- pageMenu!.didMoveToParentViewController(self)
109
- }
110
-
111
- override func didReceiveMemoryWarning() {
112
- super.didReceiveMemoryWarning()
113
- }
114
- }
115
-
116
86
  ```
117
87
 
118
88
 

6

コード

2018/01/04 08:50

投稿

tomo39-.
tomo39-.

スコア27

title CHANGED
File without changes
body CHANGED
@@ -11,7 +11,7 @@
11
11
 
12
12
  ご参考までにコードを表記します。
13
13
 
14
- TableViewController.swiftのコードは
14
+ TableViewController.swiftのコードはimportとプロパティを追加しています。
15
15
 
16
16
  ```
17
17
  import UIKit
@@ -36,74 +36,7 @@
36
36
  }
37
37
  }
38
38
 
39
- override func didReceiveMemoryWarning() {
40
- super.didReceiveMemoryWarning()
41
- // Dispose of any resources that can be recreated.
42
- }
43
39
 
44
- // MARK: - Table view data source
45
- override func numberOfSectionsInTableView(tableView: UITableView) -> Int {
46
- // #warning Incomplete implementation, return the number of sections
47
- return 0
48
- }
49
-
50
- override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
51
- // #warning Incomplete implementation, return the number of rows
52
- return 0
53
- }
54
-
55
- /*
56
- override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
57
- let cell = tableView.dequeueReusableCellWithIdentifier("reuseIdentifier", forIndexPath: indexPath)
58
- // Configure the cell...
59
- return cell
60
- }
61
- */
62
-
63
- /*
64
- // Override to support conditional editing of the table view.
65
- override func tableView(tableView: UITableView, canEditRowAtIndexPath indexPath: NSIndexPath) -> Bool {
66
- // Return false if you do not want the specified item to be editable.
67
- return true
68
- }
69
- */
70
-
71
- /*
72
- // Override to support editing the table view.
73
- override func tableView(tableView: UITableView, commitEditingStyle editingStyle: UITableViewCellEditingStyle, forRowAtIndexPath indexPath: NSIndexPath) {
74
- if editingStyle == .Delete {
75
- // Delete the row from the data source
76
- tableView.deleteRowsAtIndexPaths([indexPath], withRowAnimation: .Fade)
77
- } else if editingStyle == .Insert {
78
- // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view
79
- }
80
- }
81
- */
82
-
83
- /*
84
- // Override to support rearranging the table view.
85
- override func tableView(tableView: UITableView, moveRowAtIndexPath fromIndexPath: NSIndexPath, toIndexPath: NSIndexPath) {
86
- }
87
- */
88
-
89
- /*
90
- // Override to support conditional rearranging of the table view.
91
- override func tableView(tableView: UITableView, canMoveRowAtIndexPath indexPath: NSIndexPath) -> Bool {
92
- // Return false if you do not want the item to be re-orderable.
93
- return true
94
- }
95
- */
96
-
97
- /*
98
- // MARK: - Navigation
99
- // In a storyboard-based application, you will often want to do a little preparation before navigation
100
- override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
101
- // Get the new view controller using segue.destinationViewController.
102
- // Pass the selected object to the new view controller.
103
- }
104
- */
105
-
106
- }
107
40
  ```
108
41
 
109
42
 

5

タイトル

2018/01/04 08:49

投稿

tomo39-.
tomo39-.

スコア27

title CHANGED
@@ -1,1 +1,1 @@
1
- SwiftyJSONについて。RSSを取得る方法
1
+ SwiftyJSONについて。お助け願いま
body CHANGED
@@ -207,4 +207,8 @@
207
207
  RSSデータの取得元は、http://menthas.com/というサイトです。
208
208
  APIにうまく通されていないからでしょうか?
209
209
 
210
+ ![イメージ説明](4a168cfb99be7253ddfdbe6197fd82d7.jpeg)
211
+
212
+ こちらが確認できません。
213
+
210
214
  どうぞよろしくお願いします。

4

本文

2018/01/04 08:29

投稿

tomo39-.
tomo39-.

スコア27

title CHANGED
File without changes
body CHANGED
@@ -1,7 +1,16 @@
1
- ライブラリからデータを取得したいです
1
+ こんにちははじめまして
2
- xcode 7.3、swift 2.2, cocoapods 1.3.1でプロジェクトを進めています。
3
- メニューバーにはタイトルが表示されるものの、ウェブデーターが表示されません。
4
2
 
3
+ xcode 7.3、swift 2.2, cocoapods 1.0.0.beta.2 でという環境でプロジェクトを進めてきています。
4
+ 恐れ入りますが、ハマってしまいました。エラー自体もでてきません。。。
5
+ 詳しくは下記ホームページを拝見して欲しいです。
6
+ (http://webfood.info/swift-rss-reader/)
7
+
8
+ ライブラリインストールまで、できました。
9
+ 実装後、メニューバーにはタイトルが表示されるものの、
10
+ ウェブデーターが表示されず困っています。
11
+
12
+ ご参考までにコードを表記します。
13
+
5
14
  TableViewController.swiftのコードは
6
15
 
7
16
  ```
@@ -198,5 +207,4 @@
198
207
  RSSデータの取得元は、http://menthas.com/というサイトです。
199
208
  APIにうまく通されていないからでしょうか?
200
209
 
201
- なお、当プロジェクトはこちらを参照しています。http://webfood.info/swift-rss-reader/)
202
210
  どうぞよろしくお願いします。

3

バージョン

2018/01/04 08:26

投稿

tomo39-.
tomo39-.

スコア27

title CHANGED
File without changes
body CHANGED
@@ -1,4 +1,5 @@
1
1
  ライブラリからデータを取得したいです。
2
+ xcode 7.3、swift 2.2, cocoapods 1.3.1でプロジェクトを進めています。
2
3
  メニューバーにはタイトルが表示されるものの、ウェブデーターが表示されません。
3
4
 
4
5
  TableViewController.swiftのコードは

2

タイトル

2018/01/04 08:19

投稿

tomo39-.
tomo39-.

スコア27

title CHANGED
@@ -1,1 +1,1 @@
1
- RSSをライブラリデータとして取得して表示させたい。
1
+ SwiftyJSONについて。RSSを取得する方法
body CHANGED
@@ -1,5 +1,5 @@
1
- ライブラリからデータを取得したいですが、
1
+ ライブラリからデータを取得したいです
2
- メニューバーにはタイトルが表示されるものの、データー表示されません。
2
+ メニューバーにはタイトルが表示されるものの、ウェブデーター表示されません。
3
3
 
4
4
  TableViewController.swiftのコードは
5
5
 
@@ -189,13 +189,13 @@
189
189
  ```
190
190
 
191
191
 
192
- ビルド後は
192
+ ビルド後は成功するものの、データが表示されません。
193
+ PageMenuはうまく活用されているように思われます。AlamofireかSwiftyJSONに問題があるのだと思います。
193
194
 
194
195
  ![イメージ説明](b04d45ff5b8e7d72bfe9ee87162a20f1.png)
195
196
 
196
- でメニューバー以外には何も表示されません。
197
- RSSの取得もとは、http://menthas.com/というサイトです。
197
+ RSSデータの取得は、http://menthas.com/というサイトです。
198
198
  APIにうまく通されていないからでしょうか?
199
- (なお、当プロジェクトはこちらを参照しています。http://webfood.info/swift-rss-reader/)
200
199
 
200
+ なお、当プロジェクトはこちらを参照しています。http://webfood.info/swift-rss-reader/)
201
201
  どうぞよろしくお願いします。

1

タイトル

2018/01/04 08:17

投稿

tomo39-.
tomo39-.

スコア27

title CHANGED
@@ -1,1 +1,1 @@
1
- RSSをライブラリデータとして取得して、メニューバーに表示させたい。
1
+ RSSをライブラリデータとして取得して表示させたい。
body CHANGED
File without changes