Skip to content

Commit aab55a0

Browse files
author
Leo Chan
committed
Merge branch 'master' of github.com:leomchan/code2014
2 parents adb66c6 + f57c596 commit aab55a0

File tree

7 files changed

+39
-7
lines changed

7 files changed

+39
-7
lines changed

CODE2014/CODE2014.xcodeproj/project.pbxproj

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,8 @@
537537
CLANG_WARN_INT_CONVERSION = YES;
538538
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
539539
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
540-
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer: Leo Chan (GFP2J743S9)";
540+
CODE_SIGN_IDENTITY = "iPhone Developer: Courtney Douglas (G53GH7RG36)";
541+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer: Courtney Douglas (G53GH7RG36)";
541542
COPY_PHASE_STRIP = NO;
542543
GCC_C_LANGUAGE_STANDARD = gnu99;
543544
GCC_DYNAMIC_NO_PIC = NO;
@@ -555,7 +556,7 @@
555556
GCC_WARN_UNUSED_VARIABLE = YES;
556557
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
557558
ONLY_ACTIVE_ARCH = YES;
558-
PROVISIONING_PROFILE = "";
559+
PROVISIONING_PROFILE = "4916E40B-90FC-456F-94A2-3D948BE9C4A4";
559560
SDKROOT = iphoneos;
560561
};
561562
name = Debug;
@@ -577,7 +578,8 @@
577578
CLANG_WARN_INT_CONVERSION = YES;
578579
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
579580
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
580-
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer: Leo Chan (GFP2J743S9)";
581+
CODE_SIGN_IDENTITY = "iPhone Developer: Courtney Douglas (G53GH7RG36)";
582+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer: Courtney Douglas (G53GH7RG36)";
581583
COPY_PHASE_STRIP = YES;
582584
ENABLE_NS_ASSERTIONS = NO;
583585
GCC_C_LANGUAGE_STANDARD = gnu99;
@@ -588,7 +590,7 @@
588590
GCC_WARN_UNUSED_FUNCTION = YES;
589591
GCC_WARN_UNUSED_VARIABLE = YES;
590592
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
591-
PROVISIONING_PROFILE = "";
593+
PROVISIONING_PROFILE = "4916E40B-90FC-456F-94A2-3D948BE9C4A4";
592594
SDKROOT = iphoneos;
593595
VALIDATE_PRODUCT = YES;
594596
};

CODE2014/CODE2014/Base.lproj/Main.storyboard

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,11 @@
448448
</view>
449449
<extendedEdge key="edgesForExtendedLayout"/>
450450
<navigationItem key="navigationItem" title="Charity Details" id="c10-Fa-Ahg">
451-
<barButtonItem key="rightBarButtonItem" title="Home" id="Se0-V0-UOU"/>
451+
<barButtonItem key="rightBarButtonItem" image="homeButton" id="Se0-V0-UOU">
452+
<connections>
453+
<action selector="homeButtonTapped:" destination="NOY-Uq-MiF" id="S9f-iL-MG6"/>
454+
</connections>
455+
</barButtonItem>
452456
</navigationItem>
453457
<connections>
454458
<outlet property="pieTableView" destination="LfR-GB-Oci" id="4SS-ai-Bi9"/>
@@ -483,7 +487,9 @@
483487
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
484488
</view>
485489
<extendedEdge key="edgesForExtendedLayout"/>
486-
<navigationItem key="navigationItem" title="Charities" id="Z67-L8-0hM"/>
490+
<navigationItem key="navigationItem" title="Charities" id="Z67-L8-0hM">
491+
<barButtonItem key="backBarButtonItem" title="Back" id="2QE-74-ktq"/>
492+
</navigationItem>
487493
<connections>
488494
<outlet property="mainTableView" destination="SuY-85-5PO" id="HLx-h4-JtY"/>
489495
<segue destination="NOY-Uq-MiF" kind="push" identifier="CODEPushToCharityDetails" id="FGY-i3-Ecl"/>
@@ -518,6 +524,7 @@
518524
</scenes>
519525
<resources>
520526
<image name="TriangleAccent" width="68" height="20"/>
527+
<image name="homeButton" width="29" height="29"/>
521528
<image name="piePlate" width="240" height="240"/>
522529
<image name="triangle1" width="19" height="22"/>
523530
<image name="triangle2" width="19" height="22"/>

CODE2014/CODE2014/CODEPieChartInfoViewController.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@
1313
@property (nonatomic, weak) IBOutlet UITableView *pieTableView;
1414
@property (nonatomic, strong) PFObject *selectedOrganization;
1515

16+
- (IBAction) homeButtonTapped:(id) sender;
17+
1618
@end

CODE2014/CODE2014/CODEPieChartInfoViewController.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,10 @@ - (void) webLinkTapped: (id) sender {
375375
}
376376

377377
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:d]];
378-
}
378+
}
379379

380+
- (IBAction) homeButtonTapped:(id) sender {
381+
[self.navigationController popToRootViewControllerAnimated:YES];
382+
}
380383

381384
@end
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "universal",
5+
"scale" : "1x",
6+
"filename" : "home.png"
7+
},
8+
{
9+
"idiom" : "universal",
10+
"scale" : "2x",
11+
"filename" : "home@2x.png"
12+
}
13+
],
14+
"info" : {
15+
"version" : 1,
16+
"author" : "xcode"
17+
}
18+
}
17.9 KB
Loading
19 KB
Loading

0 commit comments

Comments
 (0)