Skip to content

Commit 918576d

Browse files
committed
Steps 55 to 56
1 parent 49149cc commit 918576d

File tree

6 files changed

+128
-5
lines changed

6 files changed

+128
-5
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Bucket
3+
type = "1"
4+
version = "2.0">
5+
</Bucket>
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "0720"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "B8518CF11C8877DC00F696F9"
18+
BuildableName = "Checklists.app"
19+
BlueprintName = "Checklists"
20+
ReferencedContainer = "container:Checklists.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<Testables>
31+
</Testables>
32+
<MacroExpansion>
33+
<BuildableReference
34+
BuildableIdentifier = "primary"
35+
BlueprintIdentifier = "B8518CF11C8877DC00F696F9"
36+
BuildableName = "Checklists.app"
37+
BlueprintName = "Checklists"
38+
ReferencedContainer = "container:Checklists.xcodeproj">
39+
</BuildableReference>
40+
</MacroExpansion>
41+
<AdditionalOptions>
42+
</AdditionalOptions>
43+
</TestAction>
44+
<LaunchAction
45+
buildConfiguration = "Debug"
46+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
47+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
48+
launchStyle = "0"
49+
useCustomWorkingDirectory = "NO"
50+
ignoresPersistentStateOnLaunch = "NO"
51+
debugDocumentVersioning = "YES"
52+
debugServiceExtension = "internal"
53+
allowLocationSimulation = "YES">
54+
<BuildableProductRunnable
55+
runnableDebuggingMode = "0">
56+
<BuildableReference
57+
BuildableIdentifier = "primary"
58+
BlueprintIdentifier = "B8518CF11C8877DC00F696F9"
59+
BuildableName = "Checklists.app"
60+
BlueprintName = "Checklists"
61+
ReferencedContainer = "container:Checklists.xcodeproj">
62+
</BuildableReference>
63+
</BuildableProductRunnable>
64+
<AdditionalOptions>
65+
</AdditionalOptions>
66+
</LaunchAction>
67+
<ProfileAction
68+
buildConfiguration = "Release"
69+
shouldUseLaunchSchemeArgsEnv = "YES"
70+
savedToolIdentifier = ""
71+
useCustomWorkingDirectory = "NO"
72+
debugDocumentVersioning = "YES">
73+
<BuildableProductRunnable
74+
runnableDebuggingMode = "0">
75+
<BuildableReference
76+
BuildableIdentifier = "primary"
77+
BlueprintIdentifier = "B8518CF11C8877DC00F696F9"
78+
BuildableName = "Checklists.app"
79+
BlueprintName = "Checklists"
80+
ReferencedContainer = "container:Checklists.xcodeproj">
81+
</BuildableReference>
82+
</BuildableProductRunnable>
83+
</ProfileAction>
84+
<AnalyzeAction
85+
buildConfiguration = "Debug">
86+
</AnalyzeAction>
87+
<ArchiveAction
88+
buildConfiguration = "Release"
89+
revealArchiveInOrganizer = "YES">
90+
</ArchiveAction>
91+
</Scheme>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>SchemeUserState</key>
6+
<dict>
7+
<key>Checklists.xcscheme</key>
8+
<dict>
9+
<key>orderHint</key>
10+
<integer>0</integer>
11+
</dict>
12+
</dict>
13+
<key>SuppressBuildableAutocreation</key>
14+
<dict>
15+
<key>B8518CF11C8877DC00F696F9</key>
16+
<dict>
17+
<key>primary</key>
18+
<true/>
19+
</dict>
20+
</dict>
21+
</dict>
22+
</plist>

Checklists/AllListViewController.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class AllListViewController: UITableViewController, AddListViewControllerDelegat
1313
var listChecklists = [Checklist]()
1414
var items = [ChecklistItem]()
1515
var currentList:Checklist?
16-
16+
1717
override func viewDidLoad() {
1818

1919
var itemOne:ChecklistItem = ChecklistItem(text: "Toto")
@@ -32,6 +32,11 @@ class AllListViewController: UITableViewController, AddListViewControllerDelegat
3232
listChecklists.append(two)
3333
listChecklists.append(three)
3434

35+
for var list in listChecklists{
36+
var item:ChecklistItem = ChecklistItem(text: "Item for \(list.name)")
37+
list.item.append(item)
38+
}
39+
3540
}
3641

3742
override func didReceiveMemoryWarning() {

Checklists/ChecklistsViewController.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class ChecklistsViewController: UITableViewController, AddItemViewControllerDele
4141
tableView.deselectRowAtIndexPath(indexPath, animated: true)
4242
listNote[indexPath.row].toogleChecked()
4343
tableView.reloadData()
44-
saveChecklistItems()
44+
//saveChecklistItems()
4545
}
4646

4747
func configureCheckmarkForCell(cell: UITableViewCell, withItem item: ChecklistItem) {
@@ -63,7 +63,7 @@ class ChecklistsViewController: UITableViewController, AddItemViewControllerDele
6363
override func tableView(tableView: UITableView, commitEditingStyle editingStyle: UITableViewCellEditingStyle, forRowAtIndexPath indexPath: NSIndexPath) {
6464
listNote.removeAtIndex(indexPath.row)
6565
tableView.deleteRowsAtIndexPaths([indexPath], withRowAnimation: UITableViewRowAnimation.Bottom)
66-
saveChecklistItems()
66+
//saveChecklistItems()
6767
}
6868

6969
func addItemViewControllerDidCancel(controller: AddItemTableViewController){
@@ -74,15 +74,15 @@ class ChecklistsViewController: UITableViewController, AddItemViewControllerDele
7474
listNote.append(item)
7575
tableView.reloadData()
7676
dismissViewControllerAnimated(true, completion: nil)
77-
saveChecklistItems()
77+
//saveChecklistItems()
7878
}
7979

8080
func addItemViewController(controller: AddItemTableViewController, didFinishEditingItem item: ChecklistItem){
8181
let indexItemToReload = listNote.indexOf({ $0 === item})
8282
listNote[indexItemToReload!].text = item.text
8383
tableView.reloadData()
8484
dismissViewControllerAnimated(true, completion: nil)
85-
saveChecklistItems()
85+
//saveChecklistItems()
8686
}
8787

8888
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {

0 commit comments

Comments
 (0)