File tree Expand file tree Collapse file tree 4 files changed +39
-2
lines changed Expand file tree Collapse file tree 4 files changed +39
-2
lines changed Original file line number Diff line number Diff line change 7
7
objects = {
8
8
9
9
/* Begin PBXBuildFile section */
10
+ 021E1AEF1944CDDE00FDC37C /* Track.swift in Sources */ = {isa = PBXBuildFile; fileRef = 021E1AEE1944CDDE00FDC37C /* Track.swift */; };
10
11
022889EF193FC3AC00D729A0 /* DetailsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 022889EE193FC3AC00D729A0 /* DetailsViewController.swift */; };
11
12
022889F1193FD6C000D729A0 /* Album.swift in Sources */ = {isa = PBXBuildFile; fileRef = 022889F0193FD6C000D729A0 /* Album.swift */; };
12
13
0229AE63193F97EF00BCED97 /* Blank52.png in Resources */ = {isa = PBXBuildFile; fileRef = 0229AE62193F97EF00BCED97 /* Blank52.png */; };
29
30
/* End PBXContainerItemProxy section */
30
31
31
32
/* Begin PBXFileReference section */
33
+ 021E1AEE1944CDDE00FDC37C /* Track.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = Track.swift; path = Classes/Track.swift; sourceTree = "<group>"; };
32
34
022889EE193FC3AC00D729A0 /* DetailsViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DetailsViewController.swift; path = Classes/DetailsViewController.swift; sourceTree = "<group>"; };
33
35
022889F0193FD6C000D729A0 /* Album.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = Album.swift; path = Classes/Album.swift; sourceTree = "<group>"; };
34
36
0229AE62193F97EF00BCED97 /* Blank52.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Blank52.png; sourceTree = "<group>"; };
77
79
isa = PBXGroup;
78
80
children = (
79
81
022889F0193FD6C000D729A0 /* Album.swift */,
82
+ 021E1AEE1944CDDE00FDC37C /* Track.swift */,
80
83
);
81
84
name = Model;
82
85
sourceTree = "<group>";
260
263
02F504DB193E0B630037F599 /* APIController.swift in Sources */,
261
264
022889EF193FC3AC00D729A0 /* DetailsViewController.swift in Sources */,
262
265
022889F1193FD6C000D729A0 /* Album.swift in Sources */,
266
+ 021E1AEF1944CDDE00FDC37C /* Track.swift in Sources */,
263
267
);
264
268
runOnlyForDeploymentPostprocessing = 0;
265
269
};
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" standalone =" no" ?>
2
2
<document type =" com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version =" 3.0" toolsVersion =" 6154.17" systemVersion =" 13D65" targetRuntime =" iOS.CocoaTouch" propertyAccessControl =" none" useAutolayout =" YES" useTraitCollections =" YES" initialViewController =" 18C-lM-Kii" >
3
3
<dependencies >
4
- <deployment defaultVersion =" 1536" identifier =" iOS" />
5
4
<plugIn identifier =" com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version =" 6153.11" />
6
5
</dependencies >
7
6
<scenes >
118
117
<variation key =" heightClass=regular-widthClass=compact" ambiguous =" YES" misplaced =" YES" >
119
118
<rect key =" frame" x =" 20" y =" 179" width =" 280" height =" 461" />
120
119
</variation >
120
+ <connections >
121
+ <outlet property =" dataSource" destination =" rSr-uw-pic" id =" Atq-D3-Xvo" />
122
+ <outlet property =" delegate" destination =" rSr-uw-pic" id =" aAg-9A-Leh" />
123
+ </connections >
121
124
</tableView >
122
125
</subviews >
123
126
<color key =" backgroundColor" white =" 1" alpha =" 1" colorSpace =" calibratedWhite" />
Original file line number Diff line number Diff line change 8
8
9
9
import UIKit
10
10
11
- class DetailsViewController : UIViewController {
11
+ class DetailsViewController : UIViewController , UITableViewDelegate , UITableViewDataSource {
12
12
13
13
@IBOutlet var albumCover : UIImageView
14
14
@IBOutlet var titleLabel : UILabel
15
15
16
16
var album : Album ?
17
+ var tracks : Track [ ] = [ ]
17
18
18
19
init ( coder aDecoder: NSCoder ! ) {
19
20
super. init ( coder: aDecoder)
@@ -24,5 +25,14 @@ class DetailsViewController: UIViewController {
24
25
titleLabel. text = self . album? . title
25
26
albumCover. image = UIImage ( data: NSData ( contentsOfURL: NSURL ( string: self . album? . largeImageURL) ) )
26
27
}
28
+
29
+
30
+ func tableView( tableView: UITableView ! , numberOfRowsInSection section: Int ) -> Int {
31
+ return 0
32
+ }
33
+
34
+ func tableView( tableView: UITableView ! , cellForRowAtIndexPath indexPath: NSIndexPath ! ) -> UITableViewCell ! {
35
+ return nil
36
+ }
27
37
28
38
}
Original file line number Diff line number Diff line change
1
+ //
2
+ // Track.swift
3
+ // TestSwift
4
+ //
5
+ // Created by Jameson Quave on 6/8/14.
6
+ // Copyright (c) 2014 JQ Software LLC. All rights reserved.
7
+ //
8
+
9
+ class Track {
10
+
11
+ var title : String ?
12
+ var price : String ?
13
+ var previewUrl : String ?
14
+
15
+ init ( name: String ! , price: String ! , previewUrl: String ! ) {
16
+ self . title = name
17
+ self . price = price
18
+ self . previewUrl = previewUrl
19
+ }
20
+ }
You can’t perform that action at this time.
0 commit comments