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
7 changes: 7 additions & 0 deletions Localizable.strings
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*
Localizable.strings
iTunesSearch

Created by Bruno Faganello Neto on 11/03/15.
Copyright (c) 2015 joaquim. All rights reserved.
*/
43 changes: 33 additions & 10 deletions iTunesSearch.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,17 @@
objects = {

/* Begin PBXBuildFile section */
5122B6661AB0D8C100102AC4 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 5122B6651AB0D8C100102AC4 /* Localizable.strings */; };
5122B6671AB0E60200102AC4 /* TableView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 5122B6691AB0E60200102AC4 /* TableView.xib */; };
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 */; };
92C21CC11AAE757A0052ABE6 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 92C21CC01AAE757A0052ABE6 /* Images.xcassets */; };
92C21CD01AAE757A0052ABE6 /* iTunesSearchTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 92C21CCF1AAE757A0052ABE6 /* iTunesSearchTests.m */; };
92C21CDB1AAE75B30052ABE6 /* iTunesManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 92C21CDA1AAE75B30052ABE6 /* iTunesManager.m */; };
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 */; };
92C21CE81AAE858E0052ABE6 /* Midia.m in Sources */ = {isa = PBXBuildFile; fileRef = 92C21CE71AAE858E0052ABE6 /* Midia.m */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand All @@ -30,6 +31,11 @@
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
5122B6651AB0D8C100102AC4 /* Localizable.strings */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; path = Localizable.strings; sourceTree = "<group>"; };
5122B6681AB0E60200102AC4 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/TableView.xib; sourceTree = "<group>"; };
5122B66B1AB0E60500102AC4 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/TableView.strings; sourceTree = "<group>"; };
5122B66C1AB0E67C00102AC4 /* fr */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = fr; path = fr.lproj/TableView.strings; sourceTree = "<group>"; };
5122B66D1AB0E68800102AC4 /* pt */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pt; path = pt.lproj/TableView.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 All @@ -43,12 +49,11 @@
92C21CCF1AAE757A0052ABE6 /* iTunesSearchTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = iTunesSearchTests.m; sourceTree = "<group>"; };
92C21CD91AAE75B30052ABE6 /* iTunesManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = iTunesManager.h; sourceTree = "<group>"; };
92C21CDA1AAE75B30052ABE6 /* iTunesManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = iTunesManager.m; sourceTree = "<group>"; };
92C21CDC1AAE75DC0052ABE6 /* TableView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = TableView.xib; sourceTree = "<group>"; };
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>"; };
92C21CE61AAE858E0052ABE6 /* Midia.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Midia.h; path = Entidades/Midia.h; sourceTree = "<group>"; };
92C21CE71AAE858E0052ABE6 /* Midia.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = Midia.m; path = Entidades/Midia.m; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand All @@ -72,6 +77,7 @@
92C21CA71AAE757A0052ABE6 = {
isa = PBXGroup;
children = (
5122B6651AB0D8C100102AC4 /* Localizable.strings */,
92C21CB21AAE757A0052ABE6 /* iTunesSearch */,
92C21CCC1AAE757A0052ABE6 /* iTunesSearchTests */,
92C21CB11AAE757A0052ABE6 /* Products */,
Expand All @@ -96,7 +102,7 @@
92C21CB81AAE757A0052ABE6 /* AppDelegate.m */,
92C21CBA1AAE757A0052ABE6 /* TableViewController.h */,
92C21CBB1AAE757A0052ABE6 /* TableViewController.m */,
92C21CDC1AAE75DC0052ABE6 /* TableView.xib */,
5122B6691AB0E60200102AC4 /* TableView.xib */,
92C21CD91AAE75B30052ABE6 /* iTunesManager.h */,
92C21CDA1AAE75B30052ABE6 /* iTunesManager.m */,
92C21CC01AAE757A0052ABE6 /* Images.xcassets */,
Expand Down Expand Up @@ -144,8 +150,8 @@
92C21CE91AAE859A0052ABE6 /* Entidades */ = {
isa = PBXGroup;
children = (
92C21CE61AAE858E0052ABE6 /* Filme.h */,
92C21CE71AAE858E0052ABE6 /* Filme.m */,
92C21CE61AAE858E0052ABE6 /* Midia.h */,
92C21CE71AAE858E0052ABE6 /* Midia.m */,
);
name = Entidades;
sourceTree = "<group>";
Expand Down Expand Up @@ -231,8 +237,9 @@
buildActionMask = 2147483647;
files = (
92C21CC11AAE757A0052ABE6 /* Images.xcassets in Resources */,
5122B6661AB0D8C100102AC4 /* Localizable.strings in Resources */,
92C21CE21AAE76930052ABE6 /* TableViewCell.xib in Resources */,
92C21CDD1AAE75DC0052ABE6 /* TableView.xib in Resources */,
5122B6671AB0E60200102AC4 /* TableView.xib in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -253,7 +260,7 @@
92C21CBC1AAE757A0052ABE6 /* TableViewController.m in Sources */,
92C21CDB1AAE75B30052ABE6 /* iTunesManager.m in Sources */,
92C21CB91AAE757A0052ABE6 /* AppDelegate.m in Sources */,
92C21CE81AAE858E0052ABE6 /* Filme.m in Sources */,
92C21CE81AAE858E0052ABE6 /* Midia.m in Sources */,
92C21CE11AAE76930052ABE6 /* TableViewCell.m in Sources */,
92C21CB61AAE757A0052ABE6 /* main.m in Sources */,
);
Expand All @@ -277,6 +284,20 @@
};
/* End PBXTargetDependency section */

/* Begin PBXVariantGroup section */
5122B6691AB0E60200102AC4 /* TableView.xib */ = {
isa = PBXVariantGroup;
children = (
5122B6681AB0E60200102AC4 /* Base */,
5122B66B1AB0E60500102AC4 /* en */,
5122B66C1AB0E67C00102AC4 /* fr */,
5122B66D1AB0E68800102AC4 /* pt */,
);
name = TableView.xib;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */

/* Begin XCBuildConfiguration section */
92C21CD11AAE757A0052ABE6 /* Debug */ = {
isa = XCBuildConfiguration;
Expand Down Expand Up @@ -361,6 +382,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
CODE_SIGN_IDENTITY = "iPhone Developer";
INFOPLIST_FILE = iTunesSearch/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -372,6 +394,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
CODE_SIGN_IDENTITY = "iPhone Developer";
INFOPLIST_FILE = iTunesSearch/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down
64 changes: 64 additions & 0 deletions iTunesSearch/Base.lproj/TableView.xib
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<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="5JK-UR-MjS" id="ETX-EZ-oq9"/>
<outlet property="texto" destination="f2e-Qv-uGU" id="JDp-uL-u0a"/>
<outlet property="view" destination="xz6-Oa-dl0" id="iRY-sI-LRt"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view contentMode="scaleToFill" id="xz6-Oa-dl0">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="f2e-Qv-uGU">
<rect key="frame" x="24" y="51" width="200" height="30"/>
<constraints>
<constraint firstAttribute="height" constant="30" id="6Wk-aD-p35"/>
<constraint firstAttribute="width" constant="200" id="ZlA-I7-z9w"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
</textField>
<button opaque="NO" contentMode="scaleToFill" misplaced="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="KEY-1k-5Bt">
<rect key="frame" x="344" y="50" width="49" height="30"/>
<state key="normal" title="Buscar">
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
</state>
<connections>
<action selector="procurar:" destination="-1" eventType="touchUpInside" id="ia7-AG-J0s"/>
</connections>
</button>
<tableView clipsSubviews="YES" contentMode="scaleToFill" fixedFrame="YES" alwaysBounceVertical="YES" style="plain" separatorStyle="default" rowHeight="44" sectionHeaderHeight="22" sectionFooterHeight="22" translatesAutoresizingMaskIntoConstraints="NO" id="5JK-UR-MjS">
<rect key="frame" x="0.0" y="129" width="600" height="600"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</tableView>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="f2e-Qv-uGU" firstAttribute="top" secondItem="xz6-Oa-dl0" secondAttribute="top" constant="51" id="90r-Za-3LP"/>
<constraint firstItem="KEY-1k-5Bt" firstAttribute="leading" secondItem="f2e-Qv-uGU" secondAttribute="trailing" constant="88" id="SlE-Lu-NAh"/>
<constraint firstItem="KEY-1k-5Bt" firstAttribute="top" secondItem="xz6-Oa-dl0" secondAttribute="top" constant="50" id="XOL-yb-NEO"/>
<constraint firstAttribute="trailing" secondItem="KEY-1k-5Bt" secondAttribute="trailing" constant="210" id="iFP-4f-dGA"/>
<constraint firstItem="f2e-Qv-uGU" firstAttribute="leading" secondItem="xz6-Oa-dl0" secondAttribute="leading" constant="24" id="mDm-iW-7oG"/>
<constraint firstItem="KEY-1k-5Bt" firstAttribute="leading" secondItem="f2e-Qv-uGU" secondAttribute="trailing" constant="60" id="r7M-7j-44v"/>
<constraint firstItem="KEY-1k-5Bt" firstAttribute="top" secondItem="xz6-Oa-dl0" secondAttribute="top" constant="50" id="tsK-wK-JG1"/>
<constraint firstItem="f2e-Qv-uGU" firstAttribute="top" secondItem="xz6-Oa-dl0" secondAttribute="top" constant="51" id="waR-ce-fQK"/>
</constraints>
<variation key="default">
<mask key="constraints">
<exclude reference="90r-Za-3LP"/>
<exclude reference="SlE-Lu-NAh"/>
<exclude reference="iFP-4f-dGA"/>
<exclude reference="tsK-wK-JG1"/>
</mask>
</variation>
<point key="canvasLocation" x="-136" y="379"/>
</view>
</objects>
</document>
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@

#import <Foundation/Foundation.h>

@interface Filme : NSObject
@interface Midia : 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;

@property (nonatomic, strong) NSNumber *preco;
@property (nonatomic, strong) NSString *tipo;
@end
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
// Copyright (c) 2015 joaquim. All rights reserved.
//

#import "Filme.h"
#import "Midia.h"

@implementation Filme
@implementation Midia

@end
4 changes: 1 addition & 3 deletions iTunesSearch/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<string>EN</string>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Porque maisculo?

<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
Expand All @@ -29,8 +29,6 @@
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
Expand Down
25 changes: 0 additions & 25 deletions iTunesSearch/TableView.xib

This file was deleted.

2 changes: 2 additions & 0 deletions 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 *valor;


@end
Loading