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
11 changes: 11 additions & 0 deletions PartTwo/PartTwo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
8DD103571BA66E0900CE483B /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8DD103551BA66E0900CE483B /* LaunchScreen.storyboard */; };
8DD103621BA66E0900CE483B /* PartTwoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 8DD103611BA66E0900CE483B /* PartTwoTests.m */; };
8DD1036D1BA66E0900CE483B /* PartTwoUITests.m in Sources */ = {isa = PBXBuildFile; fileRef = 8DD1036C1BA66E0900CE483B /* PartTwoUITests.m */; };
F79225A51BACC92F0039E347 /* SocialMediaView.m in Sources */ = {isa = PBXBuildFile; fileRef = F79225A41BACC92F0039E347 /* SocialMediaView.m */; settings = {ASSET_TAGS = (); }; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -51,6 +52,9 @@
8DD103681BA66E0900CE483B /* PartTwoUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = PartTwoUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
8DD1036C1BA66E0900CE483B /* PartTwoUITests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PartTwoUITests.m; sourceTree = "<group>"; };
8DD1036E1BA66E0900CE483B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
F79225A31BACC92F0039E347 /* SocialMediaView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SocialMediaView.h; sourceTree = "<group>"; };
F79225A41BACC92F0039E347 /* SocialMediaView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SocialMediaView.m; sourceTree = "<group>"; };
F79225A61BACC9920039E347 /* SocialMediaBackgroundProtocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SocialMediaBackgroundProtocol.h; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -105,6 +109,9 @@
8DD1034B1BA66E0900CE483B /* AppDelegate.m */,
8DD1034D1BA66E0900CE483B /* ViewController.h */,
8DD1034E1BA66E0900CE483B /* ViewController.m */,
F79225A31BACC92F0039E347 /* SocialMediaView.h */,
F79225A41BACC92F0039E347 /* SocialMediaView.m */,
F79225A61BACC9920039E347 /* SocialMediaBackgroundProtocol.h */,
8DD103501BA66E0900CE483B /* Main.storyboard */,
8DD103531BA66E0900CE483B /* Assets.xcassets */,
8DD103551BA66E0900CE483B /* LaunchScreen.storyboard */,
Expand Down Expand Up @@ -272,6 +279,7 @@
files = (
8DD1034F1BA66E0900CE483B /* ViewController.m in Sources */,
8DD1034C1BA66E0900CE483B /* AppDelegate.m in Sources */,
F79225A51BACC92F0039E347 /* SocialMediaView.m in Sources */,
8DD103491BA66E0900CE483B /* main.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -498,6 +506,7 @@
8DD103731BA66E0900CE483B /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
8DD103741BA66E0900CE483B /* Build configuration list for PBXNativeTarget "PartTwoTests" */ = {
isa = XCConfigurationList;
Expand All @@ -506,6 +515,7 @@
8DD103761BA66E0900CE483B /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
8DD103771BA66E0900CE483B /* Build configuration list for PBXNativeTarget "PartTwoUITests" */ = {
isa = XCConfigurationList;
Expand All @@ -514,6 +524,7 @@
8DD103791BA66E0900CE483B /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
type = "1"
version = "2.0">
</Bucket>
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0700"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "8DD103431BA66E0900CE483B"
BuildableName = "PartTwo.app"
BlueprintName = "PartTwo"
ReferencedContainer = "container:PartTwo.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "8DD1035C1BA66E0900CE483B"
BuildableName = "PartTwoTests.xctest"
BlueprintName = "PartTwoTests"
ReferencedContainer = "container:PartTwo.xcodeproj">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "8DD103671BA66E0900CE483B"
BuildableName = "PartTwoUITests.xctest"
BlueprintName = "PartTwoUITests"
ReferencedContainer = "container:PartTwo.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "8DD103431BA66E0900CE483B"
BuildableName = "PartTwo.app"
BlueprintName = "PartTwo"
ReferencedContainer = "container:PartTwo.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "8DD103431BA66E0900CE483B"
BuildableName = "PartTwo.app"
BlueprintName = "PartTwo"
ReferencedContainer = "container:PartTwo.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "8DD103431BA66E0900CE483B"
BuildableName = "PartTwo.app"
BlueprintName = "PartTwo"
ReferencedContainer = "container:PartTwo.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SchemeUserState</key>
<dict>
<key>PartTwo.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
<dict>
<key>8DD103431BA66E0900CE483B</key>
<dict>
<key>primary</key>
<true/>
</dict>
<key>8DD1035C1BA66E0900CE483B</key>
<dict>
<key>primary</key>
<true/>
</dict>
<key>8DD103671BA66E0900CE483B</key>
<dict>
<key>primary</key>
<true/>
</dict>
</dict>
</dict>
</plist>
86 changes: 83 additions & 3 deletions PartTwo/PartTwo/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
@@ -1,25 +1,105 @@
<?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="jMx-Ig-4Tm" customClass="SocialMediaView">
<rect key="frame" x="0.0" y="20" width="600" height="580"/>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="cfQ-IE-SGy">
<rect key="frame" x="228" y="187" width="144" height="226"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="kkD-lk-tPZ">
<rect key="frame" x="0.0" y="98" width="144" height="30"/>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="width" constant="144" id="22K-sZ-J8K"/>
<constraint firstAttribute="height" constant="30" id="q01-wC-d7F"/>
</constraints>
<state key="normal" title="Like"/>
<connections>
<action selector="likeButtonTapped:" destination="BYZ-38-t0r" eventType="touchUpInside" id="l7s-4z-OKh"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="61x-3C-mOE">
<rect key="frame" x="0.0" y="136" width="144" height="30"/>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="30" id="QNo-ys-owv"/>
<constraint firstAttribute="width" constant="144" id="rg8-GU-xgn"/>
</constraints>
<state key="normal" title="Share"/>
<connections>
<action selector="shareButtonTapped:" destination="BYZ-38-t0r" eventType="touchUpInside" id="2go-Op-by3"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="WDQ-Yt-Bjq">
<rect key="frame" x="0.0" y="60" width="144" height="30"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<constraints>
<constraint firstAttribute="width" constant="144" id="7vw-6k-4L2"/>
<constraint firstAttribute="height" constant="30" id="YpN-dI-h2a"/>
</constraints>
<state key="normal" title="Comment"/>
<connections>
<action selector="commentButtonTapped:" destination="BYZ-38-t0r" eventType="touchUpInside" id="z8Z-PK-psP"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" red="1" green="0.43529412150382996" blue="0.81176471710205078" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstItem="61x-3C-mOE" firstAttribute="top" secondItem="kkD-lk-tPZ" secondAttribute="bottom" constant="8" symbolic="YES" id="7lj-AX-X4Z"/>
<constraint firstItem="kkD-lk-tPZ" firstAttribute="trailing" secondItem="61x-3C-mOE" secondAttribute="trailing" id="GS4-TM-Olp"/>
<constraint firstItem="61x-3C-mOE" firstAttribute="top" secondItem="kkD-lk-tPZ" secondAttribute="bottom" constant="8" id="Gha-zt-gbr"/>
<constraint firstItem="61x-3C-mOE" firstAttribute="centerX" secondItem="cfQ-IE-SGy" secondAttribute="centerX" id="Rh1-Ae-kNf"/>
<constraint firstItem="kkD-lk-tPZ" firstAttribute="centerX" secondItem="cfQ-IE-SGy" secondAttribute="centerX" id="Rhf-3t-561"/>
<constraint firstItem="kkD-lk-tPZ" firstAttribute="top" secondItem="WDQ-Yt-Bjq" secondAttribute="bottom" constant="8" id="Zb1-QQ-B1c"/>
<constraint firstItem="kkD-lk-tPZ" firstAttribute="trailing" secondItem="WDQ-Yt-Bjq" secondAttribute="trailing" id="ZfV-Z5-aPq"/>
<constraint firstItem="kkD-lk-tPZ" firstAttribute="leading" secondItem="cfQ-IE-SGy" secondAttribute="leading" id="ber-Dw-cL0"/>
<constraint firstItem="kkD-lk-tPZ" firstAttribute="leading" secondItem="61x-3C-mOE" secondAttribute="leading" id="cFl-tJ-t5x"/>
<constraint firstItem="WDQ-Yt-Bjq" firstAttribute="centerX" secondItem="cfQ-IE-SGy" secondAttribute="centerX" id="dmp-e9-cxW"/>
<constraint firstItem="kkD-lk-tPZ" firstAttribute="centerY" secondItem="cfQ-IE-SGy" secondAttribute="centerY" id="ipW-Ig-3le"/>
<constraint firstItem="kkD-lk-tPZ" firstAttribute="leading" secondItem="WDQ-Yt-Bjq" secondAttribute="leading" id="s6Z-rq-Hfw"/>
<constraint firstItem="kkD-lk-tPZ" firstAttribute="top" secondItem="WDQ-Yt-Bjq" secondAttribute="bottom" constant="8" symbolic="YES" id="u0H-VO-fhf"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="cfQ-IE-SGy" firstAttribute="centerY" secondItem="8bC-Xf-vdC" secondAttribute="centerY" id="0h5-jd-Pnq"/>
<constraint firstItem="jMx-Ig-4Tm" firstAttribute="leading" secondItem="8bC-Xf-vdC" secondAttribute="leading" id="AtY-ii-dSr"/>
<constraint firstItem="jMx-Ig-4Tm" firstAttribute="centerX" secondItem="8bC-Xf-vdC" secondAttribute="centerX" id="C6H-l9-yPO"/>
<constraint firstAttribute="trailing" secondItem="jMx-Ig-4Tm" secondAttribute="trailing" id="ER7-03-r3j"/>
<constraint firstItem="cfQ-IE-SGy" firstAttribute="top" secondItem="y3c-jy-aDJ" secondAttribute="bottom" constant="167" id="Lsa-t6-bTE"/>
<constraint firstItem="jMx-Ig-4Tm" firstAttribute="centerY" secondItem="8bC-Xf-vdC" secondAttribute="centerY" id="QVf-27-nLS"/>
<constraint firstItem="cfQ-IE-SGy" firstAttribute="centerX" secondItem="8bC-Xf-vdC" secondAttribute="centerX" id="TRa-s0-8oT"/>
<constraint firstItem="wfy-db-euE" firstAttribute="top" secondItem="jMx-Ig-4Tm" secondAttribute="bottom" id="fNk-Mh-Zfc"/>
<constraint firstItem="jMx-Ig-4Tm" firstAttribute="top" secondItem="y3c-jy-aDJ" secondAttribute="bottom" id="iR0-tt-Wge"/>
</constraints>
<variation key="default">
<mask key="constraints">
<exclude reference="QVf-27-nLS"/>
</mask>
</variation>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="198" y="136"/>
</scene>
</scenes>
</document>
15 changes: 15 additions & 0 deletions PartTwo/PartTwo/SocialMediaBackgroundProtocol.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//
// SocialMediaBackgroundProtocol.h
// PartTwo
//
// Created by Christella on 9/18/15.
// Copyright © 2015 Mike Kavouras. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol SocialMediaBackgroundProtocol <NSObject>

-(void)colorSelection:(UIColor *)selectedColor;

@end
18 changes: 18 additions & 0 deletions PartTwo/PartTwo/SocialMediaView.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// SocialMediaView.h
// PartTwo
//
// Created by Christella on 9/18/15.
// Copyright © 2015 Mike Kavouras. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface SocialMediaView : UIView






@end
Loading