回答編集履歴

1

コード訂正

2015/07/10 14:27

投稿

terushu
terushu

スコア358

test CHANGED
@@ -10,9 +10,11 @@
10
10
 
11
11
  let diary = diaries[indexPath.row]
12
12
 
13
- diaryContent = diary.content
13
+ var appDelegate:AppDelegate = UIApplication.sharedApplication().delegate as! AppDelegate
14
14
 
15
+ appDelegate.diaryContent = diary.content
16
+
15
- diaryDate = diary.date
17
+ appDelegate.diaryDate = diary.date
16
18
 
17
19
  performSegueWithIdentifier("ToDetailDiaryViewController", sender: nil)
18
20