質問編集履歴

3

色々

2018/12/27 04:17

投稿

nekokichi
nekokichi

スコア54

test CHANGED
File without changes
test CHANGED
@@ -658,15 +658,51 @@
658
658
 
659
659
  ```
660
660
 
661
+ override func viewDidLoad() {
662
+
663
+ super.viewDidLoad()
664
+
665
+ //
666
+
667
+ // let upvc = storyboard?.instantiateViewController(withIdentifier: "userpageID") as! UserPageViewController
668
+
669
+ //
670
+
671
+ // let user = NCMBUser
672
+
673
+
674
+
675
+ //検索バーを設置
676
+
677
+ setSearchBar()
678
+
679
+
680
+
681
+ tableView.register(UINib(nibName: "TimeLineViewCell", bundle: Bundle.main), forCellReuseIdentifier: "timelinecell")
682
+
683
+ //tableViewのセルの高さを設定
684
+
685
+ tableView.estimatedRowHeight = 80
686
+
687
+ tableView.rowHeight = 80
688
+
689
+ tableView.tableFooterView = UIView()
690
+
691
+
692
+
661
- print("3")
693
+ print("3")
662
-
694
+
663
- loadUsers(searchText: nil)
695
+ loadUsers(searchText: nil)
664
-
696
+
665
- print("1")
697
+ print("1")
666
-
698
+
667
- tableView.reloadData()
699
+ tableView.reloadData()
668
-
700
+
669
- print("2")
701
+ print("2")
702
+
703
+
704
+
705
+ }
670
706
 
671
707
  ```
672
708
 

2

色々

2018/12/27 04:17

投稿

nekokichi
nekokichi

スコア54

test CHANGED
File without changes
test CHANGED
@@ -643,3 +643,51 @@
643
643
  }]
644
644
 
645
645
  ```
646
+
647
+
648
+
649
+
650
+
651
+
652
+
653
+ ※追記
654
+
655
+ ViewDidLoad下に下記を追加したら、
656
+
657
+
658
+
659
+ ```
660
+
661
+ print("3")
662
+
663
+ loadUsers(searchText: nil)
664
+
665
+ print("1")
666
+
667
+ tableView.reloadData()
668
+
669
+ print("2")
670
+
671
+ ```
672
+
673
+
674
+
675
+ 下記のように表示されてるので、tableView.reloadDataは通っているはずなのですが。
676
+
677
+
678
+
679
+ ```
680
+
681
+ 3
682
+
683
+ 1
684
+
685
+ 2
686
+
687
+ 2
688
+
689
+ [{
690
+
691
+ "FacebookURL" : "",
692
+
693
+ ```

1

色々

2018/12/27 03:56

投稿

nekokichi
nekokichi

スコア54

test CHANGED
File without changes
test CHANGED
@@ -24,6 +24,10 @@
24
24
 
25
25
  という問題に直面しています。
26
26
 
27
+
28
+
29
+ ![イメージ説明](2afb0cec8b6fb6aa639a4c90d7c77527.png)
30
+
27
31
 
28
32
 
29
33