-
Notifications
You must be signed in to change notification settings - Fork 37
Rafael Carvalho #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
rafaelferoli
wants to merge
2
commits into
mackmobile:master
Choose a base branch
from
rafaelferoli:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Rafael Carvalho #33
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| /* | ||
| Localizable.strings | ||
| iTunesSearch | ||
|
|
||
| Created by Rafael Fernandes de Oliveira Carvalho on 3/13/15. | ||
| Copyright (c) 2015 joaquim. All rights reserved. | ||
| */ | ||
|
|
||
| "Pesquisar"= "Pesquisar"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| // | ||
| // DetailViewController.h | ||
| // iTunesSearch | ||
| // | ||
| // Created by Rafael Fernandes de Oliveira Carvalho on 3/16/15. | ||
| // Copyright (c) 2015 joaquim. All rights reserved. | ||
| // | ||
|
|
||
| #import <UIKit/UIKit.h> | ||
| #import "Filme.h" | ||
|
|
||
| @interface DetailViewController : UIViewController | ||
|
|
||
| @property Filme *filme; | ||
|
|
||
| @end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| // | ||
| // DetailViewController.m | ||
| // iTunesSearch | ||
| // | ||
| // Created by Rafael Fernandes de Oliveira Carvalho on 3/16/15. | ||
| // Copyright (c) 2015 joaquim. All rights reserved. | ||
| // | ||
|
|
||
| #import "DetailViewController.h" | ||
|
|
||
| @interface DetailViewController () | ||
| @property (weak, nonatomic) IBOutlet UILabel *nameLabel; | ||
| @property (weak, nonatomic) IBOutlet UILabel *tipoLabel; | ||
| @property (weak, nonatomic) IBOutlet UILabel *localLabel; | ||
| @property (weak, nonatomic) IBOutlet UILabel *artistaLabel; | ||
| @property (weak, nonatomic) IBOutlet UILabel *midiaLabel; | ||
|
|
||
| @end | ||
|
|
||
| @implementation DetailViewController | ||
|
|
||
| - (void)viewDidLoad { | ||
| [super viewDidLoad]; | ||
| _nameLabel.text = _filme.nome; | ||
| _tipoLabel.text = _filme.genero; | ||
| _localLabel.text = _filme.pais; | ||
| _artistaLabel.text = _filme.artista; | ||
| _midiaLabel.text = @"Filme"; | ||
|
|
||
| // Do any additional setup after loading the view from its nib. | ||
| } | ||
|
|
||
| - (void)didReceiveMemoryWarning { | ||
| [super didReceiveMemoryWarning]; | ||
| // Dispose of any resources that can be recreated. | ||
| } | ||
| - (IBAction)back:(id)sender { | ||
| [self dismissViewControllerAnimated:YES completion:nil]; | ||
| } | ||
|
|
||
| /* | ||
| #pragma mark - Navigation | ||
|
|
||
| // In a storyboard-based application, you will often want to do a little preparation before navigation | ||
| - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { | ||
| // Get the new view controller using [segue destinationViewController]. | ||
| // Pass the selected object to the new view controller. | ||
| } | ||
| */ | ||
|
|
||
| @end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| <?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="DetailViewController"> | ||
| <connections> | ||
| <outlet property="artistaLabel" destination="U7s-xZ-o8j" id="rJ6-N9-F8b"/> | ||
| <outlet property="localLabel" destination="WJw-SX-dzW" id="fhT-NK-hmi"/> | ||
| <outlet property="midiaLabel" destination="SAg-Vi-jJ8" id="f2t-KO-bOG"/> | ||
| <outlet property="nameLabel" destination="bxU-f2-QOJ" id="XB8-Ty-w7D"/> | ||
| <outlet property="tipoLabel" destination="x6A-f0-ita" id="MA8-7G-Wp7"/> | ||
| <outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/> | ||
| </connections> | ||
| </placeholder> | ||
| <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> | ||
| <view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT"> | ||
| <rect key="frame" x="0.0" y="0.0" width="600" height="600"/> | ||
| <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> | ||
| <subviews> | ||
| <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Label" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="bxU-f2-QOJ"> | ||
| <rect key="frame" x="49" y="153" width="488" height="21"/> | ||
| <fontDescription key="fontDescription" type="system" pointSize="17"/> | ||
| <color key="textColor" cocoaTouchSystemColor="darkTextColor"/> | ||
| <nil key="highlightedColor"/> | ||
| </label> | ||
| <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Label" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="x6A-f0-ita"> | ||
| <rect key="frame" x="49" y="192" width="383" height="21"/> | ||
| <fontDescription key="fontDescription" type="system" pointSize="17"/> | ||
| <color key="textColor" cocoaTouchSystemColor="darkTextColor"/> | ||
| <nil key="highlightedColor"/> | ||
| </label> | ||
| <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Label" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="WJw-SX-dzW"> | ||
| <rect key="frame" x="49" y="237" width="410" height="21"/> | ||
| <fontDescription key="fontDescription" type="system" pointSize="17"/> | ||
| <color key="textColor" cocoaTouchSystemColor="darkTextColor"/> | ||
| <nil key="highlightedColor"/> | ||
| </label> | ||
| <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Label" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="U7s-xZ-o8j"> | ||
| <rect key="frame" x="49" y="274" width="465" height="21"/> | ||
| <fontDescription key="fontDescription" type="system" pointSize="17"/> | ||
| <color key="textColor" cocoaTouchSystemColor="darkTextColor"/> | ||
| <nil key="highlightedColor"/> | ||
| </label> | ||
| <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Label" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="SAg-Vi-jJ8"> | ||
| <rect key="frame" x="49" y="319" width="488" height="21"/> | ||
| <fontDescription key="fontDescription" type="system" pointSize="17"/> | ||
| <color key="textColor" cocoaTouchSystemColor="darkTextColor"/> | ||
| <nil key="highlightedColor"/> | ||
| </label> | ||
| <navigationBar contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Bvg-Dp-4B8"> | ||
| <rect key="frame" x="0.0" y="20" width="600" height="44"/> | ||
| <items> | ||
| <navigationItem title="Detalhes" id="nog-MN-UDt"> | ||
| <barButtonItem key="leftBarButtonItem" title="Voltar" id="fN0-fC-jxs"> | ||
| <connections> | ||
| <action selector="back:" destination="-1" id="Yez-Fj-X80"/> | ||
| </connections> | ||
| </barButtonItem> | ||
| </navigationItem> | ||
| </items> | ||
| </navigationBar> | ||
| </subviews> | ||
| <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/> | ||
| <constraints> | ||
| <constraint firstItem="Bvg-Dp-4B8" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" constant="20" id="JBc-au-P4E"/> | ||
| <constraint firstItem="Bvg-Dp-4B8" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="MhC-yj-lHi"/> | ||
| <constraint firstAttribute="trailing" secondItem="Bvg-Dp-4B8" secondAttribute="trailing" id="P8c-QV-SCN"/> | ||
| </constraints> | ||
| </view> | ||
| </objects> | ||
| </document> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| // | ||
| // HeaderTableViewCell.h | ||
| // iTunesSearch | ||
| // | ||
| // Created by Rafael Fernandes de Oliveira Carvalho on 3/10/15. | ||
| // Copyright (c) 2015 joaquim. All rights reserved. | ||
| // | ||
|
|
||
| #import <UIKit/UIKit.h> | ||
|
|
||
| @interface HeaderTableViewCell : UITableViewCell <UISearchBarDelegate> | ||
| @property (weak, nonatomic) IBOutlet UISearchBar *searchBar; | ||
|
|
||
| @end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| // | ||
| // HeaderTableViewCell.m | ||
| // iTunesSearch | ||
| // | ||
| // Created by Rafael Fernandes de Oliveira Carvalho on 3/10/15. | ||
| // Copyright (c) 2015 joaquim. All rights reserved. | ||
| // | ||
|
|
||
| #import "HeaderTableViewCell.h" | ||
| #import "TableViewController.h" | ||
| #import "iTunesManager.h" | ||
|
|
||
| @implementation HeaderTableViewCell | ||
|
|
||
| - (void)awakeFromNib { | ||
| [_searchBar setDelegate:self]; | ||
| _searchBar.placeholder = NSLocalizedString(@"Pesquisar", @""); | ||
|
|
||
| } | ||
|
|
||
| - (void)setSelected:(BOOL)selected animated:(BOOL)animated { | ||
| [super setSelected:selected animated:animated]; | ||
|
|
||
| // Configure the view for the selected state | ||
| } | ||
|
|
||
|
|
||
| - (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar { | ||
| iTunesManager *itunes = [iTunesManager sharedInstance]; | ||
| TableViewController *tableView = (TableViewController *)[UIApplication sharedApplication].keyWindow.rootViewController; | ||
| tableView.midias = [itunes buscarMidias:[_searchBar.text stringByReplacingOccurrencesOfString:@" " withString:@"-"]]; | ||
| [tableView.tableview reloadData]; | ||
| } | ||
|
|
||
| @end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| <?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"/> | ||
| <capability name="Constraints to layout margins" minToolsVersion="6.0"/> | ||
| </dependencies> | ||
| <objects> | ||
| <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/> | ||
| <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> | ||
| <tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" rowHeight="65" id="mQz-j9-EXq" customClass="HeaderTableViewCell"> | ||
| <rect key="frame" x="0.0" y="0.0" width="320" height="65"/> | ||
| <autoresizingMask key="autoresizingMask"/> | ||
| <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="mQz-j9-EXq" id="NOi-ni-UM7"> | ||
| <autoresizingMask key="autoresizingMask"/> | ||
| <subviews> | ||
| <searchBar contentMode="redraw" ambiguous="YES" misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="w0Y-bx-IU8"> | ||
| <rect key="frame" x="0.0" y="20" width="320" height="44"/> | ||
| <textInputTraits key="textInputTraits"/> | ||
| </searchBar> | ||
| </subviews> | ||
| <constraints> | ||
| <constraint firstItem="w0Y-bx-IU8" firstAttribute="top" secondItem="NOi-ni-UM7" secondAttribute="topMargin" constant="12" id="mPc-2a-mTf"/> | ||
| </constraints> | ||
| </tableViewCellContentView> | ||
| <connections> | ||
| <outlet property="searchBar" destination="w0Y-bx-IU8" id="CEc-H5-Sdz"/> | ||
| </connections> | ||
| <point key="canvasLocation" x="506" y="507.5"/> | ||
| </tableViewCell> | ||
| </objects> | ||
| </document> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tem muito mais informações do que isso para mostrar.