Skip to content

Commit

Permalink
answer page done
Browse files Browse the repository at this point in the history
  • Loading branch information
raghav297 committed Apr 13, 2014
1 parent b462a39 commit 9973822
Show file tree
Hide file tree
Showing 12 changed files with 162 additions and 124 deletions.
6 changes: 6 additions & 0 deletions TellMeNow/TellMeNow.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
4BBC338E18EF8B92009E2DFE /* TellMeNowTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 4BBC338D18EF8B92009E2DFE /* TellMeNowTests.m */; };
4BBC339818EF9169009E2DFE /* FacebookSDK.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4BBC339718EF9169009E2DFE /* FacebookSDK.framework */; };
4BBC339B18EFCE3D009E2DFE /* SelectLocationAQViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 4BBC339A18EFCE3D009E2DFE /* SelectLocationAQViewController.m */; };
4BCAD0B718FA3F8300A4B2B0 /* QuestionPageAnswersTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 4BCAD0B618FA3F8300A4B2B0 /* QuestionPageAnswersTableViewCell.m */; };
4BE6ABB118F9C670000ECAD8 /* FeedQuestionTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 4BE6ABB018F9C670000ECAD8 /* FeedQuestionTableViewCell.m */; };
4BE6ABB418F9CED3000ECAD8 /* FeedQuestionViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 4BE6ABB318F9CED3000ECAD8 /* FeedQuestionViewController.m */; };
AC0E8A3B18F02E3E00841054 /* Place.m in Sources */ = {isa = PBXBuildFile; fileRef = AC0E8A3A18F02E3E00841054 /* Place.m */; };
Expand Down Expand Up @@ -133,6 +134,8 @@
4BBC339718EF9169009E2DFE /* FacebookSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = FacebookSDK.framework; path = ../FacebookSDK/FacebookSDK.framework; sourceTree = "<group>"; };
4BBC339918EFCE3D009E2DFE /* SelectLocationAQViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SelectLocationAQViewController.h; sourceTree = "<group>"; };
4BBC339A18EFCE3D009E2DFE /* SelectLocationAQViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SelectLocationAQViewController.m; sourceTree = "<group>"; };
4BCAD0B518FA3F8300A4B2B0 /* QuestionPageAnswersTableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = QuestionPageAnswersTableViewCell.h; sourceTree = "<group>"; };
4BCAD0B618FA3F8300A4B2B0 /* QuestionPageAnswersTableViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = QuestionPageAnswersTableViewCell.m; sourceTree = "<group>"; };
4BE6ABAF18F9C670000ECAD8 /* FeedQuestionTableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FeedQuestionTableViewCell.h; sourceTree = "<group>"; };
4BE6ABB018F9C670000ECAD8 /* FeedQuestionTableViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FeedQuestionTableViewCell.m; sourceTree = "<group>"; };
4BE6ABB218F9CED3000ECAD8 /* FeedQuestionViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FeedQuestionViewController.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -207,6 +210,8 @@
4B65D7B918F9FB5F00A0B377 /* Table View Cells */ = {
isa = PBXGroup;
children = (
4BCAD0B518FA3F8300A4B2B0 /* QuestionPageAnswersTableViewCell.h */,
4BCAD0B618FA3F8300A4B2B0 /* QuestionPageAnswersTableViewCell.m */,
4B63FF9818FA322C006124D6 /* QuestionPageHeadingTableViewCell.h */,
4B63FF9B18FA337F006124D6 /* QuestionPageCommentTableViewCell.h */,
4B63FF9C18FA337F006124D6 /* QuestionPageCommentTableViewCell.m */,
Expand Down Expand Up @@ -519,6 +524,7 @@
4B65D7D618FA1EC700A0B377 /* AnswerPageTableViewController.m in Sources */,
4B65D7B818F9F9CE00A0B377 /* TrackAnswerTableViewCell.m in Sources */,
4B237E3318F059DF003E2805 /* NotificationsTableViewController.m in Sources */,
4BCAD0B718FA3F8300A4B2B0 /* QuestionPageAnswersTableViewCell.m in Sources */,
4B27E4AC18F071F100B7849E /* Answer.m in Sources */,
AC836BB418F9762B00CE90AF /* Comment.m in Sources */,
4BBC336F18EF8B91009E2DFE /* main.m in Sources */,
Expand Down
3 changes: 2 additions & 1 deletion TellMeNow/TellMeNow/AddAnswerTableViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
//

#import <UIKit/UIKit.h>
#import "Question.h"

@interface AddAnswerTableViewController : UITableViewController

@property (strong, nonatomic) Question *question;
@end
1 change: 1 addition & 0 deletions TellMeNow/TellMeNow/AnswerPageTableViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@

@interface AnswerPageTableViewController : UITableViewController

@property (strong, nonatomic) Answer *answer;
@end
22 changes: 15 additions & 7 deletions TellMeNow/TellMeNow/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@
<rect key="frame" x="0.0" y="0.0" width="320" height="91"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Label" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="byX-Xa-e4J">
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Question Text" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="byX-Xa-e4J">
<rect key="frame" x="20" y="7" width="280" height="64"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="system" pointSize="15"/>
Expand All @@ -560,8 +560,12 @@
</label>
</subviews>
</tableViewCellContentView>
<connections>
<outlet property="questionDate" destination="aO4-yd-nd5" id="IN3-Ou-4RO"/>
<outlet property="questionTextLabel" destination="byX-Xa-e4J" id="hk1-By-PUQ"/>
</connections>
</tableViewCell>
<tableViewCell contentMode="scaleToFill" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="questionComment" rowHeight="59" id="0xR-i1-fmM">
<tableViewCell contentMode="scaleToFill" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="questionComment" rowHeight="59" id="0xR-i1-fmM" customClass="QuestionPageCommentTableViewCell">
<rect key="frame" x="0.0" y="211" width="320" height="59"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="0xR-i1-fmM" id="1Aq-Qn-p8b">
Expand All @@ -581,7 +585,7 @@
<nil key="highlightedColor"/>
</label>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="xkS-3C-Wfa">
<rect key="frame" x="16" y="2" width="19" height="51"/>
<rect key="frame" x="16" y="0.0" width="19" height="58"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="backgroundColor" white="0.66666666666666663" alpha="1" colorSpace="calibratedWhite"/>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
Expand All @@ -590,6 +594,10 @@
</label>
</subviews>
</tableViewCellContentView>
<connections>
<outlet property="commentText" destination="TD9-4N-82e" id="As8-dY-IRL"/>
<outlet property="commentUsername" destination="Cgz-BV-ebJ" id="6a0-MU-ngM"/>
</connections>
</tableViewCell>
<tableViewCell contentMode="scaleToFill" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="addCommentButton" rowHeight="29" id="pZl-sR-YJ1">
<rect key="frame" x="0.0" y="270" width="320" height="29"/>
Expand Down Expand Up @@ -635,10 +643,10 @@
</subviews>
</tableViewCellContentView>
<connections>
<segue destination="zom-aL-yMR" kind="push" id="Z1I-U1-7yH"/>
<segue destination="zom-aL-yMR" kind="push" identifier="answerPage" id="Z1I-U1-7yH"/>
</connections>
</tableViewCell>
<tableViewCell contentMode="scaleToFill" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" id="P2R-ta-gQd">
<tableViewCell contentMode="scaleToFill" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="addAnswer" id="P2R-ta-gQd">
<rect key="frame" x="0.0" y="343" width="320" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="P2R-ta-gQd" id="ZQt-iQ-GXf">
Expand All @@ -664,7 +672,7 @@
</constraints>
</tableViewCellContentView>
<connections>
<segue destination="KCH-bW-aJh" kind="modal" id="iuK-hP-Fl2"/>
<segue destination="KCH-bW-aJh" kind="modal" identifier="addAnswer" id="iuK-hP-Fl2"/>
</connections>
</tableViewCell>
</prototypes>
Expand Down Expand Up @@ -809,7 +817,7 @@
<autoresizingMask key="autoresizingMask"/>
<subviews>
<textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="1LM-lL-2BG">
<rect key="frame" x="10" y="3" width="300" height="163"/>
<rect key="frame" x="10" y="3" width="52" height="163"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
Expand Down
13 changes: 13 additions & 0 deletions TellMeNow/TellMeNow/QuestionPageAnswersTableViewCell.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// QuestionPageAnswersTableViewCell.h
// TellMeNow
//
// Created by Raghav on 4/12/14.
// Copyright (c) 2014 House Boelter. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface QuestionPageAnswersTableViewCell : UITableViewCell

@end
34 changes: 34 additions & 0 deletions TellMeNow/TellMeNow/QuestionPageAnswersTableViewCell.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
//
// QuestionPageAnswersTableViewCell.m
// TellMeNow
//
// Created by Raghav on 4/12/14.
// Copyright (c) 2014 House Boelter. All rights reserved.
//

#import "QuestionPageAnswersTableViewCell.h"

@implementation QuestionPageAnswersTableViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
if (self) {
// Initialization code
}
return self;
}

- (void)awakeFromNib
{
// Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
[super setSelected:selected animated:animated];

// Configure the view for the selected state
}

@end
2 changes: 2 additions & 0 deletions TellMeNow/TellMeNow/QuestionPageCommentTableViewCell.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@
#import <UIKit/UIKit.h>

@interface QuestionPageCommentTableViewCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UILabel *commentUsername;
@property (weak, nonatomic) IBOutlet UILabel *commentText;

@end
20 changes: 0 additions & 20 deletions TellMeNow/TellMeNow/QuestionPageCommentTableViewCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,5 @@

@implementation QuestionPageCommentTableViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
if (self) {
// Initialization code
}
return self;
}

- (void)awakeFromNib
{
// Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
[super setSelected:selected animated:animated];

// Configure the view for the selected state
}

@end
3 changes: 3 additions & 0 deletions TellMeNow/TellMeNow/QuestionPageHeadingTableViewCell.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@
#import <UIKit/UIKit.h>

@interface QuestionPageHeadingTableViewCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UILabel *questionTextLabel;
@property (weak, nonatomic) IBOutlet UILabel *questionDate;
@property (weak, nonatomic) IBOutlet UILabel *questionUsername;

@end
20 changes: 0 additions & 20 deletions TellMeNow/TellMeNow/QuestionPageHeadingTableViewCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,5 @@

@implementation QuestionPageHeadingTableViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
if (self) {
// Initialization code
}
return self;
}

- (void)awakeFromNib
{
// Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
[super setSelected:selected animated:animated];

// Configure the view for the selected state
}

@end
9 changes: 5 additions & 4 deletions TellMeNow/TellMeNow/QuestionPageTableViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@

#import <UIKit/UIKit.h>
#import "Question.h"
#import "Answer.h"

@interface QuestionPageTableViewController : UITableViewController

@property (weak, nonatomic) IBOutlet UILabel *questionTextLabel;
@property (weak, nonatomic) IBOutlet UILabel *questionUsername;
@property (weak, nonatomic) IBOutlet UILabel *questionDate;

@property (strong, nonatomic) Question *question;
@property (strong, nonatomic) NSArray *comments;
@property (strong, nonatomic) NSArray *answers;
@property (strong, nonatomic) Answer *selectedAnswer;
@end
Loading

0 comments on commit 9973822

Please sign in to comment.