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
63 changes: 63 additions & 0 deletions iTunesSearch.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
objects = {

/* Begin PBXBuildFile section */
2135DBAE1AB23407005AD968 /* Podcast.m in Sources */ = {isa = PBXBuildFile; fileRef = 2135DBAD1AB23407005AD968 /* Podcast.m */; };
2135DBB11AB23414005AD968 /* Music.m in Sources */ = {isa = PBXBuildFile; fileRef = 2135DBB01AB23414005AD968 /* Music.m */; };
2135DBB41AB2341F005AD968 /* Ebook.m in Sources */ = {isa = PBXBuildFile; fileRef = 2135DBB31AB2341F005AD968 /* Ebook.m */; };
21B2D24D1AB0C6ED00D9709D /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 21B2D24F1AB0C6ED00D9709D /* Localizable.strings */; };
21B2D2521AB0C6EE00D9709D /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 21B2D2541AB0C6EE00D9709D /* InfoPlist.strings */; };
21B2D2571AB0C6EE00D9709D /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 21B2D2591AB0C6EE00D9709D /* InfoPlist.strings */; };
92C21CB61AAE757A0052ABE6 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 92C21CB51AAE757A0052ABE6 /* main.m */; };
92C21CB91AAE757A0052ABE6 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 92C21CB81AAE757A0052ABE6 /* AppDelegate.m */; };
92C21CBC1AAE757A0052ABE6 /* TableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 92C21CBB1AAE757A0052ABE6 /* TableViewController.m */; };
Expand All @@ -30,6 +36,18 @@
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
2135DBAC1AB23407005AD968 /* Podcast.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Podcast.h; sourceTree = "<group>"; };
2135DBAD1AB23407005AD968 /* Podcast.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Podcast.m; sourceTree = "<group>"; };
2135DBAF1AB23414005AD968 /* Music.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Music.h; sourceTree = "<group>"; };
2135DBB01AB23414005AD968 /* Music.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Music.m; sourceTree = "<group>"; };
2135DBB21AB2341F005AD968 /* Ebook.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Ebook.h; sourceTree = "<group>"; };
2135DBB31AB2341F005AD968 /* Ebook.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Ebook.m; sourceTree = "<group>"; };
21B2D24E1AB0C6ED00D9709D /* pt */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pt; path = pt.lproj/Localizable.strings; sourceTree = "<group>"; };
21B2D2531AB0C6EE00D9709D /* pt */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pt; path = pt.lproj/InfoPlist.strings; sourceTree = "<group>"; };
21B2D2581AB0C6EE00D9709D /* pt */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pt; path = pt.lproj/InfoPlist.strings; sourceTree = "<group>"; };
21B2D25A1AB0C72F00D9709D /* fr */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = fr; path = fr.lproj/Localizable.strings; sourceTree = "<group>"; };
21B2D25B1AB0C72F00D9709D /* fr */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = fr; path = fr.lproj/InfoPlist.strings; sourceTree = "<group>"; };
21B2D25C1AB0C72F00D9709D /* fr */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = fr; path = fr.lproj/InfoPlist.strings; sourceTree = "<group>"; };
92C21CB01AAE757A0052ABE6 /* iTunesSearch.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = iTunesSearch.app; sourceTree = BUILT_PRODUCTS_DIR; };
92C21CB41AAE757A0052ABE6 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
92C21CB51AAE757A0052ABE6 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
Expand Down Expand Up @@ -108,6 +126,8 @@
92C21CB31AAE757A0052ABE6 /* Supporting Files */ = {
isa = PBXGroup;
children = (
21B2D2541AB0C6EE00D9709D /* InfoPlist.strings */,
21B2D24F1AB0C6ED00D9709D /* Localizable.strings */,
92C21CB41AAE757A0052ABE6 /* Info.plist */,
92C21CB51AAE757A0052ABE6 /* main.m */,
);
Expand All @@ -126,6 +146,7 @@
92C21CCD1AAE757A0052ABE6 /* Supporting Files */ = {
isa = PBXGroup;
children = (
21B2D2591AB0C6EE00D9709D /* InfoPlist.strings */,
92C21CCE1AAE757A0052ABE6 /* Info.plist */,
);
name = "Supporting Files";
Expand All @@ -146,6 +167,12 @@
children = (
92C21CE61AAE858E0052ABE6 /* Filme.h */,
92C21CE71AAE858E0052ABE6 /* Filme.m */,
2135DBAC1AB23407005AD968 /* Podcast.h */,
2135DBAD1AB23407005AD968 /* Podcast.m */,
2135DBAF1AB23414005AD968 /* Music.h */,
2135DBB01AB23414005AD968 /* Music.m */,
2135DBB21AB2341F005AD968 /* Ebook.h */,
2135DBB31AB2341F005AD968 /* Ebook.m */,
);
name = Entidades;
sourceTree = "<group>";
Expand Down Expand Up @@ -231,15 +258,18 @@
buildActionMask = 2147483647;
files = (
92C21CC11AAE757A0052ABE6 /* Images.xcassets in Resources */,
21B2D24D1AB0C6ED00D9709D /* Localizable.strings in Resources */,
92C21CE21AAE76930052ABE6 /* TableViewCell.xib in Resources */,
92C21CDD1AAE75DC0052ABE6 /* TableView.xib in Resources */,
21B2D2521AB0C6EE00D9709D /* InfoPlist.strings in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
92C21CC71AAE757A0052ABE6 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
21B2D2571AB0C6EE00D9709D /* InfoPlist.strings in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -250,8 +280,11 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
2135DBB41AB2341F005AD968 /* Ebook.m in Sources */,
92C21CBC1AAE757A0052ABE6 /* TableViewController.m in Sources */,
92C21CDB1AAE75B30052ABE6 /* iTunesManager.m in Sources */,
2135DBAE1AB23407005AD968 /* Podcast.m in Sources */,
2135DBB11AB23414005AD968 /* Music.m in Sources */,
92C21CB91AAE757A0052ABE6 /* AppDelegate.m in Sources */,
92C21CE81AAE858E0052ABE6 /* Filme.m in Sources */,
92C21CE11AAE76930052ABE6 /* TableViewCell.m in Sources */,
Expand All @@ -277,6 +310,36 @@
};
/* End PBXTargetDependency section */

/* Begin PBXVariantGroup section */
21B2D24F1AB0C6ED00D9709D /* Localizable.strings */ = {
isa = PBXVariantGroup;
children = (
21B2D24E1AB0C6ED00D9709D /* pt */,
21B2D25A1AB0C72F00D9709D /* fr */,
);
name = Localizable.strings;
sourceTree = "<group>";
};
21B2D2541AB0C6EE00D9709D /* InfoPlist.strings */ = {
isa = PBXVariantGroup;
children = (
21B2D2531AB0C6EE00D9709D /* pt */,
21B2D25B1AB0C72F00D9709D /* fr */,
);
name = InfoPlist.strings;
sourceTree = "<group>";
};
21B2D2591AB0C6EE00D9709D /* InfoPlist.strings */ = {
isa = PBXVariantGroup;
children = (
21B2D2581AB0C6EE00D9709D /* pt */,
21B2D25C1AB0C72F00D9709D /* fr */,
);
name = InfoPlist.strings;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */

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

#import <Foundation/Foundation.h>

@interface Ebook : NSObject

@property (nonatomic, strong) NSString *nome;
@property (nonatomic, strong) NSString *trackId;
@property (nonatomic, strong) NSString *artista;
@property (nonatomic, strong) NSString *pais;

@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 Guilherme on 12/03/15.
// Copyright (c) 2015 joaquim. All rights reserved.
//

#import "Ebook.h"

@implementation Ebook

@end
20 changes: 20 additions & 0 deletions iTunesSearch/Music.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
//
// Music.h
// iTunesSearch
//
// Created by Guilherme on 12/03/15.
// Copyright (c) 2015 joaquim. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Music : 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) NSString *pais;

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

#import "Music.h"

@implementation Music

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

#import <Foundation/Foundation.h>

@interface Podcast : NSObject

@property (nonatomic, strong) NSString *nome;
@property (nonatomic, strong) NSString *trackId;
@property (nonatomic, strong) NSString *artista;
@property (nonatomic, strong) NSString *pais;
@property (nonatomic, strong) NSString *genero;

@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 Guilherme on 12/03/15.
// Copyright (c) 2015 joaquim. All rights reserved.
//

#import "Podcast.h"

@implementation Podcast

@end
102 changes: 92 additions & 10 deletions iTunesSearch/TableView.xib
Original file line number Diff line number Diff line change
@@ -1,25 +1,107 @@
<?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="14C109" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6736"/>
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
</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="idioma" destination="fav-8d-6A6" id="ICC-ko-qOv"/>
<outlet property="tableview" destination="vrd-LH-EHE" id="Np0-Ip-4aM"/>
<outlet property="texto" destination="aUV-aK-pDl" id="jpf-Kr-EEz"/>
<outlet property="view" destination="bYu-XW-WWK" id="viy-Gt-D60"/>
</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="bYu-XW-WWK">
<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" ambiguous="YES" alwaysBounceVertical="YES" style="plain" separatorStyle="default" rowHeight="44" sectionHeaderHeight="22" sectionFooterHeight="22" translatesAutoresizingMaskIntoConstraints="NO" id="vrd-LH-EHE">
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstAttribute="height" constant="535" id="uKi-lP-aTI"/>
<constraint firstAttribute="width" constant="600" id="zaU-QY-nAA"/>
</constraints>
<variation key="default">
<mask key="constraints">
<exclude reference="uKi-lP-aTI"/>
<exclude reference="zaU-QY-nAA"/>
</mask>
</variation>
<variation key="heightClass=regular-widthClass=compact">
<mask key="constraints">
<include reference="uKi-lP-aTI"/>
<include reference="zaU-QY-nAA"/>
</mask>
</variation>
<connections>
<outlet property="dataSource" destination="-1" id="2C6-5S-lcI"/>
<outlet property="delegate" destination="-1" id="Kat-2y-woj"/>
</connections>
</tableView>
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" ambiguous="YES" misplaced="YES" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="aUV-aK-pDl">
<rect key="frame" x="13" y="19" width="141" height="30"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
</textField>
<button opaque="NO" contentMode="scaleToFill" ambiguous="YES" misplaced="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="fav-8d-6A6">
<rect key="frame" x="177" y="19" width="30" height="30"/>
<constraints>
<constraint firstAttribute="width" constant="99" id="Vgl-ce-NHZ"/>
</constraints>
<state key="normal" title="GO!">
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
</state>
<variation key="default">
<mask key="constraints">
<exclude reference="Vgl-ce-NHZ"/>
</mask>
</variation>
<variation key="heightClass=regular-widthClass=compact">
<mask key="constraints">
<include reference="Vgl-ce-NHZ"/>
</mask>
</variation>
<connections>
<action selector="go:" destination="-1" eventType="touchUpInside" id="qGM-90-Gk8"/>
</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="vrd-LH-EHE" firstAttribute="leading" secondItem="bYu-XW-WWK" secondAttribute="leading" id="1DC-sG-t0u"/>
<constraint firstItem="vrd-LH-EHE" firstAttribute="top" secondItem="aUV-aK-pDl" secondAttribute="bottom" constant="16" id="8p7-sN-N94"/>
<constraint firstItem="aUV-aK-pDl" firstAttribute="top" secondItem="bYu-XW-WWK" secondAttribute="top" constant="19" id="HBe-2i-OKn"/>
<constraint firstItem="aUV-aK-pDl" firstAttribute="leading" secondItem="bYu-XW-WWK" secondAttribute="leadingMargin" id="Hip-2u-UDh"/>
<constraint firstItem="aUV-aK-pDl" firstAttribute="top" secondItem="fav-8d-6A6" secondAttribute="top" id="hKK-gg-dDV"/>
<constraint firstItem="fav-8d-6A6" firstAttribute="leading" secondItem="aUV-aK-pDl" secondAttribute="trailing" constant="23" id="jbj-NV-g7F"/>
<constraint firstAttribute="trailing" secondItem="fav-8d-6A6" secondAttribute="trailing" constant="16" id="kvf-WT-u7y"/>
</constraints>
<variation key="default">
<mask key="constraints">
<exclude reference="1DC-sG-t0u"/>
<exclude reference="8p7-sN-N94"/>
<exclude reference="HBe-2i-OKn"/>
<exclude reference="Hip-2u-UDh"/>
<exclude reference="hKK-gg-dDV"/>
<exclude reference="jbj-NV-g7F"/>
<exclude reference="kvf-WT-u7y"/>
</mask>
</variation>
<variation key="heightClass=regular-widthClass=compact">
<mask key="constraints">
<include reference="1DC-sG-t0u"/>
<include reference="8p7-sN-N94"/>
<include reference="HBe-2i-OKn"/>
<include reference="Hip-2u-UDh"/>
<include reference="hKK-gg-dDV"/>
<include reference="jbj-NV-g7F"/>
<include reference="kvf-WT-u7y"/>
</mask>
</variation>
<point key="canvasLocation" x="151" y="283"/>
</view>
</objects>
</document>
4 changes: 3 additions & 1 deletion iTunesSearch/TableViewCell.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

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

@property (weak, nonatomic) IBOutlet UILabel *genero;
@property (weak, nonatomic) IBOutlet UILabel *pais;
@property (weak, nonatomic) IBOutlet UILabel *trackId;

@end
Loading