Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 75 additions & 6 deletions iTunesSearch.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,14 @@
92C21CDD1AAE75DC0052ABE6 /* TableView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 92C21CDC1AAE75DC0052ABE6 /* TableView.xib */; };
92C21CE11AAE76930052ABE6 /* TableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 92C21CDF1AAE76930052ABE6 /* TableViewCell.m */; };
92C21CE21AAE76930052ABE6 /* TableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 92C21CE01AAE76930052ABE6 /* TableViewCell.xib */; };
92C21CE81AAE858E0052ABE6 /* Filme.m in Sources */ = {isa = PBXBuildFile; fileRef = 92C21CE71AAE858E0052ABE6 /* Filme.m */; };
F77D5F731AB0A90000271A97 /* Musica.m in Sources */ = {isa = PBXBuildFile; fileRef = F77D5F721AB0A8FF00271A97 /* Musica.m */; };
F77D5F761AB0BD5800271A97 /* Ebook.m in Sources */ = {isa = PBXBuildFile; fileRef = F77D5F751AB0BD5800271A97 /* Ebook.m */; };
F77D5F791AB0BD6600271A97 /* Podcast.m in Sources */ = {isa = PBXBuildFile; fileRef = F77D5F781AB0BD6600271A97 /* Podcast.m */; };
F77D5F7C1AB0C59700271A97 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = F77D5F7E1AB0C59700271A97 /* InfoPlist.strings */; };
F77D5F811AB0C59800271A97 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = F77D5F831AB0C59800271A97 /* InfoPlist.strings */; };
F77D5F861AB0C59800271A97 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = F77D5F881AB0C59800271A97 /* Localizable.strings */; };
F77D5F8E1AB0C94800271A97 /* Entidade.m in Sources */ = {isa = PBXBuildFile; fileRef = F77D5F8D1AB0C94800271A97 /* Entidade.m */; };
F77D5F921AB0CB0400271A97 /* Filme.m in Sources */ = {isa = PBXBuildFile; fileRef = F77D5F911AB0CB0400271A97 /* Filme.m */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -47,8 +54,22 @@
92C21CDE1AAE76930052ABE6 /* TableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TableViewCell.h; sourceTree = "<group>"; };
92C21CDF1AAE76930052ABE6 /* TableViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TableViewCell.m; sourceTree = "<group>"; };
92C21CE01AAE76930052ABE6 /* TableViewCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = TableViewCell.xib; sourceTree = "<group>"; };
92C21CE61AAE858E0052ABE6 /* Filme.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Filme.h; path = Entidades/Filme.h; sourceTree = "<group>"; };
92C21CE71AAE858E0052ABE6 /* Filme.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = Filme.m; path = Entidades/Filme.m; sourceTree = "<group>"; };
F77D5F711AB0A8FF00271A97 /* Musica.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Musica.h; sourceTree = "<group>"; };
F77D5F721AB0A8FF00271A97 /* Musica.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Musica.m; sourceTree = "<group>"; };
F77D5F741AB0BD5800271A97 /* Ebook.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Ebook.h; sourceTree = "<group>"; };
F77D5F751AB0BD5800271A97 /* Ebook.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Ebook.m; sourceTree = "<group>"; };
F77D5F771AB0BD6600271A97 /* Podcast.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Podcast.h; sourceTree = "<group>"; };
F77D5F781AB0BD6600271A97 /* Podcast.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Podcast.m; sourceTree = "<group>"; };
F77D5F7D1AB0C59700271A97 /* fr */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = fr; path = fr.lproj/InfoPlist.strings; sourceTree = "<group>"; };
F77D5F821AB0C59800271A97 /* fr */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = fr; path = fr.lproj/InfoPlist.strings; sourceTree = "<group>"; };
F77D5F871AB0C59800271A97 /* fr */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = fr; path = fr.lproj/Localizable.strings; sourceTree = "<group>"; };
F77D5F891AB0C5AB00271A97 /* pt */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pt; path = pt.lproj/InfoPlist.strings; sourceTree = "<group>"; };
F77D5F8A1AB0C5AB00271A97 /* pt */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pt; path = pt.lproj/InfoPlist.strings; sourceTree = "<group>"; };
F77D5F8B1AB0C5AB00271A97 /* pt */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pt; path = pt.lproj/Localizable.strings; sourceTree = "<group>"; };
F77D5F8C1AB0C94800271A97 /* Entidade.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Entidade.h; sourceTree = "<group>"; };
F77D5F8D1AB0C94800271A97 /* Entidade.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Entidade.m; sourceTree = "<group>"; };
F77D5F901AB0CB0400271A97 /* Filme.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Filme.h; sourceTree = "<group>"; };
F77D5F911AB0CB0400271A97 /* Filme.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Filme.m; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -108,6 +129,8 @@
92C21CB31AAE757A0052ABE6 /* Supporting Files */ = {
isa = PBXGroup;
children = (
F77D5F881AB0C59800271A97 /* Localizable.strings */,
F77D5F831AB0C59800271A97 /* InfoPlist.strings */,
92C21CB41AAE757A0052ABE6 /* Info.plist */,
92C21CB51AAE757A0052ABE6 /* main.m */,
);
Expand All @@ -126,6 +149,7 @@
92C21CCD1AAE757A0052ABE6 /* Supporting Files */ = {
isa = PBXGroup;
children = (
F77D5F7E1AB0C59700271A97 /* InfoPlist.strings */,
92C21CCE1AAE757A0052ABE6 /* Info.plist */,
);
name = "Supporting Files";
Expand All @@ -144,8 +168,16 @@
92C21CE91AAE859A0052ABE6 /* Entidades */ = {
isa = PBXGroup;
children = (
92C21CE61AAE858E0052ABE6 /* Filme.h */,
92C21CE71AAE858E0052ABE6 /* Filme.m */,
F77D5F711AB0A8FF00271A97 /* Musica.h */,
F77D5F721AB0A8FF00271A97 /* Musica.m */,
F77D5F741AB0BD5800271A97 /* Ebook.h */,
F77D5F751AB0BD5800271A97 /* Ebook.m */,
F77D5F771AB0BD6600271A97 /* Podcast.h */,
F77D5F781AB0BD6600271A97 /* Podcast.m */,
F77D5F8C1AB0C94800271A97 /* Entidade.h */,
F77D5F8D1AB0C94800271A97 /* Entidade.m */,
F77D5F901AB0CB0400271A97 /* Filme.h */,
F77D5F911AB0CB0400271A97 /* Filme.m */,
);
name = Entidades;
sourceTree = "<group>";
Expand Down Expand Up @@ -230,7 +262,9 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
F77D5F861AB0C59800271A97 /* Localizable.strings in Resources */,
92C21CC11AAE757A0052ABE6 /* Images.xcassets in Resources */,
F77D5F811AB0C59800271A97 /* InfoPlist.strings in Resources */,
92C21CE21AAE76930052ABE6 /* TableViewCell.xib in Resources */,
92C21CDD1AAE75DC0052ABE6 /* TableView.xib in Resources */,
);
Expand All @@ -240,6 +274,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
F77D5F7C1AB0C59700271A97 /* InfoPlist.strings in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -251,9 +286,13 @@
buildActionMask = 2147483647;
files = (
92C21CBC1AAE757A0052ABE6 /* TableViewController.m in Sources */,
F77D5F731AB0A90000271A97 /* Musica.m in Sources */,
F77D5F761AB0BD5800271A97 /* Ebook.m in Sources */,
F77D5F8E1AB0C94800271A97 /* Entidade.m in Sources */,
F77D5F791AB0BD6600271A97 /* Podcast.m in Sources */,
F77D5F921AB0CB0400271A97 /* Filme.m in Sources */,
92C21CDB1AAE75B30052ABE6 /* iTunesManager.m in Sources */,
92C21CB91AAE757A0052ABE6 /* AppDelegate.m in Sources */,
92C21CE81AAE858E0052ABE6 /* Filme.m in Sources */,
92C21CE11AAE76930052ABE6 /* TableViewCell.m in Sources */,
92C21CB61AAE757A0052ABE6 /* main.m in Sources */,
);
Expand All @@ -277,6 +316,36 @@
};
/* End PBXTargetDependency section */

/* Begin PBXVariantGroup section */
F77D5F7E1AB0C59700271A97 /* InfoPlist.strings */ = {
isa = PBXVariantGroup;
children = (
F77D5F7D1AB0C59700271A97 /* fr */,
F77D5F891AB0C5AB00271A97 /* pt */,
);
name = InfoPlist.strings;
sourceTree = "<group>";
};
F77D5F831AB0C59800271A97 /* InfoPlist.strings */ = {
isa = PBXVariantGroup;
children = (
F77D5F821AB0C59800271A97 /* fr */,
F77D5F8A1AB0C5AB00271A97 /* pt */,
);
name = InfoPlist.strings;
sourceTree = "<group>";
};
F77D5F881AB0C59800271A97 /* Localizable.strings */ = {
isa = PBXVariantGroup;
children = (
F77D5F871AB0C59800271A97 /* fr */,
F77D5F8B1AB0C5AB00271A97 /* pt */,
);
name = Localizable.strings;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */

/* Begin XCBuildConfiguration section */
92C21CD11AAE757A0052ABE6 /* Debug */ = {
isa = XCBuildConfiguration;
Expand Down
14 changes: 14 additions & 0 deletions iTunesSearch/Ebook.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//
// Ebook.h
// iTunesSearch
//
// Created by André Helaehil on 11/03/15.
// Copyright (c) 2015 joaquim. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Entidade.h"

@interface Ebook : Entidade

@end
13 changes: 13 additions & 0 deletions iTunesSearch/Ebook.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// Ebook.m
// iTunesSearch
//
// Created by André Helaehil on 11/03/15.
// Copyright (c) 2015 joaquim. All rights reserved.
//

#import "Ebook.h"

@implementation Ebook

@end
9 changes: 6 additions & 3 deletions iTunesSearch/Entidades/Filme.h → iTunesSearch/Entidade.h
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
//
// Filme.h
// Entidade.h
// iTunesSearch
//
// Created by joaquim on 09/03/15.
// Created by André Helaehil on 11/03/15.
// Copyright (c) 2015 joaquim. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Filme : NSObject
@interface Entidade : NSObject

@property (nonatomic, strong) NSString *nome;
@property (nonatomic, strong) NSString *trackId;
@property (nonatomic, strong) NSString *artista;
@property (nonatomic, strong) NSString *duracao;
@property (nonatomic, strong) NSString *genero;
@property (nonatomic, strong) NSNumber *preco;
@property (nonatomic, strong) NSString *imgUrl;
@property (nonatomic, strong) NSString *pais;
@property (nonatomic, strong) NSString *data;

@end
13 changes: 13 additions & 0 deletions iTunesSearch/Entidade.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// Entidade.m
// iTunesSearch
//
// Created by André Helaehil on 11/03/15.
// Copyright (c) 2015 joaquim. All rights reserved.
//

#import "Entidade.h"

@implementation Entidade

@end
14 changes: 14 additions & 0 deletions iTunesSearch/Filme.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//
// Filme.h
// iTunesSearch
//
// Created by André Helaehil on 11/03/15.
// Copyright (c) 2015 joaquim. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Entidade.h"

@interface Filme : Entidade

@end
2 changes: 1 addition & 1 deletion iTunesSearch/Entidades/Filme.m → iTunesSearch/Filme.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Filme.m
// iTunesSearch
//
// Created by joaquim on 09/03/15.
// Created by André Helaehil on 11/03/15.
// Copyright (c) 2015 joaquim. All rights reserved.
//

Expand Down
14 changes: 14 additions & 0 deletions iTunesSearch/Musica.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//
// Musica.h
// iTunesSearch
//
// Created by André Helaehil on 11/03/15.
// Copyright (c) 2015 joaquim. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Entidade.h"

@interface Musica : Entidade

@end
13 changes: 13 additions & 0 deletions iTunesSearch/Musica.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// Musica.m
// iTunesSearch
//
// Created by André Helaehil on 11/03/15.
// Copyright (c) 2015 joaquim. All rights reserved.
//

#import "Musica.h"

@implementation Musica

@end
16 changes: 16 additions & 0 deletions iTunesSearch/Podcast.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
//
// Podcast.h
// iTunesSearch
//
// Created by André Helaehil on 11/03/15.
// Copyright (c) 2015 joaquim. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Entidade.h"

@interface Podcast : Entidade

@property (nonatomic, strong) NSString *artista;

@end
13 changes: 13 additions & 0 deletions iTunesSearch/Podcast.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// Podcast.m
// iTunesSearch
//
// Created by André Helaehil on 11/03/15.
// Copyright (c) 2015 joaquim. All rights reserved.
//

#import "Podcast.h"

@implementation Podcast

@end
45 changes: 35 additions & 10 deletions iTunesSearch/TableView.xib
Original file line number Diff line number Diff line change
@@ -1,25 +1,50 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="6751" systemVersion="14D72i" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="6751" systemVersion="14C1510" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6736"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="TableViewController">
<connections>
<outlet property="tableview" destination="z24-IP-C1d" id="fiF-7d-ri3"/>
<outlet property="view" destination="z24-IP-C1d" id="NXu-VO-9o4"/>
<outlet property="botao" destination="P0T-Aa-NIj" id="xlL-ai-dLp"/>
<outlet property="tableview" destination="TJQ-el-1fi" id="bP4-1f-aTn"/>
<outlet property="texto" destination="rgB-yJ-vgq" id="Cu0-V8-dcf"/>
<outlet property="view" destination="ETE-Hc-bOi" id="zuL-Ti-PbL"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" style="plain" separatorStyle="default" rowHeight="44" sectionHeaderHeight="22" sectionFooterHeight="22" id="z24-IP-C1d">
<view contentMode="scaleToFill" id="ETE-Hc-bOi">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<tableView clipsSubviews="YES" contentMode="scaleToFill" fixedFrame="YES" alwaysBounceVertical="YES" style="plain" separatorStyle="default" rowHeight="44" sectionHeaderHeight="22" sectionFooterHeight="22" translatesAutoresizingMaskIntoConstraints="NO" id="TJQ-el-1fi">
<rect key="frame" x="0.0" y="79" width="600" height="663"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</tableView>
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" ambiguous="YES" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="rgB-yJ-vgq">
<rect key="frame" x="8" y="35" width="514" height="30"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
</textField>
<button opaque="NO" contentMode="scaleToFill" ambiguous="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="P0T-Aa-NIj">
<rect key="frame" x="530" y="35" width="48" height="30"/>
<state key="normal" title="Search">
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
</state>
<connections>
<action selector="search:" destination="-1" eventType="touchUpInside" id="GaQ-yR-yb2"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<connections>
<outlet property="dataSource" destination="-1" id="grn-Rq-4Ux"/>
<outlet property="delegate" destination="-1" id="M2x-yu-OMO"/>
</connections>
<point key="canvasLocation" x="-135" y="440"/>
</tableView>
<constraints>
<constraint firstItem="rgB-yJ-vgq" firstAttribute="top" secondItem="ETE-Hc-bOi" secondAttribute="top" constant="35" id="3oE-Fz-98i"/>
<constraint firstItem="P0T-Aa-NIj" firstAttribute="leading" secondItem="rgB-yJ-vgq" secondAttribute="trailing" constant="8" id="4tb-tB-r3L"/>
<constraint firstItem="rgB-yJ-vgq" firstAttribute="leading" secondItem="ETE-Hc-bOi" secondAttribute="leading" constant="8" id="RtY-Sa-Sfu"/>
<constraint firstAttribute="trailing" secondItem="P0T-Aa-NIj" secondAttribute="trailing" constant="22" id="hlC-Sz-1y1"/>
<constraint firstItem="P0T-Aa-NIj" firstAttribute="top" secondItem="ETE-Hc-bOi" secondAttribute="top" constant="35" id="qJe-Su-uph"/>
</constraints>
<point key="canvasLocation" x="150" y="124"/>
</view>
</objects>
</document>
4 changes: 2 additions & 2 deletions iTunesSearch/TableViewCell.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@interface TableViewCell : UITableViewCell

@property (weak, nonatomic) IBOutlet UILabel *nome;
@property (weak, nonatomic) IBOutlet UILabel *tipo;

@property (weak, nonatomic) IBOutlet UILabel *artista;
@property (weak, nonatomic) IBOutlet UILabel *preco;

@end
Loading