-
Notifications
You must be signed in to change notification settings - Fork 26
A Tribe Called PULL REQuest #7
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
Jamaal51
wants to merge
1
commit into
accesscode-2-2:master
Choose a base branch
from
Jamaal51: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
Changes from all commits
Commits
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,80 @@ | ||
| <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
| <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="8191" systemVersion="14F27" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES"> | ||
| <dependencies> | ||
| <deployment identifier="iOS"/> | ||
| <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="8154"/> | ||
| </dependencies> | ||
| <objects> | ||
| <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/> | ||
| <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> | ||
| <view contentMode="scaleToFill" id="iN0-l3-epB" customClass="SocialMediaView"> | ||
| <rect key="frame" x="0.0" y="0.0" width="600" height="600"/> | ||
| <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> | ||
| <subviews> | ||
| <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Vx1-eQ-vFZ"> | ||
| <rect key="frame" x="0.0" y="150" width="600" height="100"/> | ||
| <constraints> | ||
| <constraint firstAttribute="height" constant="100" id="Kpi-jk-V0W"/> | ||
| <constraint firstAttribute="width" constant="100" id="huc-Ty-Nki"/> | ||
| </constraints> | ||
| <state key="normal" title="Like"/> | ||
| <variation key="default"> | ||
| <mask key="constraints"> | ||
| <exclude reference="huc-Ty-Nki"/> | ||
| </mask> | ||
| </variation> | ||
| <connections> | ||
| <action selector="likeButtonTapped:" destination="iN0-l3-epB" eventType="touchUpInside" id="mNR-r3-wlx"/> | ||
| </connections> | ||
| </button> | ||
| <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="wqO-iA-7x3"> | ||
| <rect key="frame" x="0.0" y="350" width="600" height="100"/> | ||
| <constraints> | ||
| <constraint firstAttribute="width" constant="100" id="PML-Ch-UDP"/> | ||
| <constraint firstAttribute="height" constant="100" id="fJh-i6-ls6"/> | ||
| </constraints> | ||
| <state key="normal" title="Share"/> | ||
| <variation key="default"> | ||
| <mask key="constraints"> | ||
| <exclude reference="PML-Ch-UDP"/> | ||
| </mask> | ||
| </variation> | ||
| <connections> | ||
| <action selector="shareButtonTapped:" destination="iN0-l3-epB" eventType="touchUpInside" id="YVQ-Da-6XL"/> | ||
| </connections> | ||
| </button> | ||
| <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="1Ud-r2-HAG"> | ||
| <rect key="frame" x="0.0" y="250" width="600" height="100"/> | ||
| <constraints> | ||
| <constraint firstAttribute="height" constant="100" id="JY2-HW-ATi"/> | ||
| <constraint firstAttribute="width" constant="100" id="Xb4-z5-WiN"/> | ||
| </constraints> | ||
| <state key="normal" title="Comment"/> | ||
| <variation key="default"> | ||
| <mask key="constraints"> | ||
| <exclude reference="Xb4-z5-WiN"/> | ||
| </mask> | ||
| </variation> | ||
| <connections> | ||
| <action selector="commentButtonTapped:" destination="iN0-l3-epB" eventType="touchUpInside" id="I8Y-n7-hY6"/> | ||
| </connections> | ||
| </button> | ||
| </subviews> | ||
| <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/> | ||
| <constraints> | ||
| <constraint firstItem="1Ud-r2-HAG" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="centerY" id="0X8-2u-Rxg"/> | ||
| <constraint firstAttribute="trailing" secondItem="wqO-iA-7x3" secondAttribute="trailing" id="4We-ip-YH2"/> | ||
| <constraint firstItem="wqO-iA-7x3" firstAttribute="top" secondItem="1Ud-r2-HAG" secondAttribute="bottom" id="6Ex-KD-za8"/> | ||
| <constraint firstItem="1Ud-r2-HAG" firstAttribute="centerX" secondItem="wqO-iA-7x3" secondAttribute="centerX" id="HPR-hU-bnz"/> | ||
| <constraint firstItem="1Ud-r2-HAG" firstAttribute="centerX" secondItem="iN0-l3-epB" secondAttribute="centerX" id="LkI-AX-lEt"/> | ||
| <constraint firstAttribute="trailing" secondItem="Vx1-eQ-vFZ" secondAttribute="trailing" id="NZW-px-BxL"/> | ||
| <constraint firstItem="Vx1-eQ-vFZ" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="PtJ-CE-97P"/> | ||
| <constraint firstItem="1Ud-r2-HAG" firstAttribute="top" secondItem="Vx1-eQ-vFZ" secondAttribute="bottom" id="Six-zY-FoF"/> | ||
| <constraint firstAttribute="trailing" secondItem="1Ud-r2-HAG" secondAttribute="trailing" id="Yym-0C-dRo"/> | ||
| <constraint firstItem="wqO-iA-7x3" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="eld-lm-XxH"/> | ||
| <constraint firstItem="1Ud-r2-HAG" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="hrS-Ma-tgi"/> | ||
| <constraint firstItem="1Ud-r2-HAG" firstAttribute="centerX" secondItem="Vx1-eQ-vFZ" secondAttribute="centerX" id="qK7-OE-wgE"/> | ||
| </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
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 |
|---|---|---|
| @@ -1,25 +1,44 @@ | ||
| <?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
| <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6211" systemVersion="14A298i" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r"> | ||
| <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="8191" systemVersion="14F27" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r"> | ||
| <dependencies> | ||
| <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6204"/> | ||
| <deployment identifier="iOS"/> | ||
| <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="8154"/> | ||
| </dependencies> | ||
| <scenes> | ||
| <!--View Controller--> | ||
| <scene sceneID="tne-QT-ifu"> | ||
| <objects> | ||
| <viewController id="BYZ-38-t0r" customClass="ViewController" customModuleProvider="" sceneMemberID="viewController"> | ||
| <viewController id="BYZ-38-t0r" customClass="ViewController" sceneMemberID="viewController"> | ||
| <layoutGuides> | ||
| <viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/> | ||
| <viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/> | ||
| </layoutGuides> | ||
| <view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC"> | ||
| <rect key="frame" x="0.0" y="0.0" width="600" height="600"/> | ||
| <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> | ||
| <subviews> | ||
| <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="wql-Ru-H4o" customClass="SocialMediaView"> | ||
| <rect key="frame" x="150" y="150" width="300" height="300"/> | ||
| <color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/> | ||
| <constraints> | ||
| <constraint firstAttribute="width" constant="300" id="hhd-gk-Boq"/> | ||
| <constraint firstAttribute="height" constant="300" id="ous-Ro-YTm"/> | ||
| </constraints> | ||
| </view> | ||
| </subviews> | ||
| <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/> | ||
| <constraints> | ||
| <constraint firstItem="wql-Ru-H4o" firstAttribute="centerX" secondItem="8bC-Xf-vdC" secondAttribute="centerX" id="A7f-KN-ADL"/> | ||
| <constraint firstItem="wql-Ru-H4o" firstAttribute="centerY" secondItem="8bC-Xf-vdC" secondAttribute="centerY" id="d7D-l5-GjA"/> | ||
| </constraints> | ||
| </view> | ||
| <connections> | ||
| <outlet property="customViewController" destination="wql-Ru-H4o" id="elb-rU-gbm"/> | ||
| </connections> | ||
| </viewController> | ||
| <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/> | ||
| </objects> | ||
| <point key="canvasLocation" x="333" y="343"/> | ||
| </scene> | ||
| </scenes> | ||
| </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,20 @@ | ||
| // | ||
| // SocialMediaDelegate.h | ||
| // PartTwo | ||
| // | ||
| // Created by Jamaal Sedayao on 9/16/15. | ||
| // Copyright © 2015 Mike Kavouras. All rights reserved. | ||
| // | ||
|
|
||
|
|
||
| #import <Foundation/Foundation.h> | ||
|
|
||
| @class SocialMediaView; | ||
|
|
||
| @protocol SocialMediaDelegate <NSObject> | ||
|
|
||
| - (void) socialMediaViewDidTapLikeButton:(SocialMediaView*)view; | ||
| - (void)socialMediaViewDidTapCommentButton:(SocialMediaView*)view; | ||
| - (void)socialMediaViewDidTapShareButton:(SocialMediaView*)view; | ||
|
|
||
| @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 |
|---|---|---|
|
|
@@ -8,8 +8,10 @@ | |
|
|
||
| #import <UIKit/UIKit.h> | ||
|
|
||
|
|
||
| @interface ViewController : UIViewController | ||
|
|
||
|
|
||
|
|
||
| @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
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,17 @@ | ||
| // | ||
| // SocialMediaView.h | ||
| // PartTwo | ||
| // | ||
| // Created by Jamaal Sedayao on 9/15/15. | ||
| // Copyright © 2015 Mike Kavouras. All rights reserved. | ||
| // | ||
|
|
||
| #import <UIKit/UIKit.h> | ||
| #import "SocialMediaDelegate.h" | ||
|
|
||
|
|
||
| @interface SocialMediaView : UIView | ||
|
|
||
| @property (nonatomic,weak) id <SocialMediaDelegate> delegate; | ||
|
|
||
| @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,27 @@ | ||
| // | ||
| // SocialMediaView.m | ||
| // PartTwo | ||
| // | ||
| // Created by Jamaal Sedayao on 9/15/15. | ||
| // Copyright © 2015 Mike Kavouras. All rights reserved. | ||
| // | ||
|
|
||
| #import "SocialMediaView.h" | ||
|
|
||
| @implementation SocialMediaView | ||
|
|
||
|
|
||
| - (IBAction)likeButtonTapped:(id)sender { | ||
| [self.delegate socialMediaViewDidTapLikeButton:self]; | ||
| } | ||
|
|
||
| - (IBAction)commentButtonTapped:(id)sender{ | ||
| [self.delegate socialMediaViewDidTapCommentButton:self]; | ||
| } | ||
|
|
||
| - (IBAction)shareButtonTapped:(id)sender { | ||
| [self.delegate socialMediaViewDidTapShareButton:self]; | ||
| } | ||
|
|
||
|
|
||
| @end |
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.
you shouldnt call this
viewControllerbecause its aview.