加入意见反馈

This commit is contained in:
wu736139669
2015-04-27 09:28:14 +08:00
parent fe2a1b3d41
commit 9d04a08b91
6 changed files with 203 additions and 8 deletions
+10
View File
@@ -185,6 +185,8 @@
A99AA12C1ADCCB3C00574B12 /* MessagePublihViewModel.m in Sources */ = {isa = PBXBuildFile; fileRef = A99AA1291ADCCB3C00574B12 /* MessagePublihViewModel.m */; };
A99AA12D1ADCCB3C00574B12 /* MessageViewModel.m in Sources */ = {isa = PBXBuildFile; fileRef = A99AA12B1ADCCB3C00574B12 /* MessageViewModel.m */; };
A99AA12F1ADD028400574B12 /* Icon120.png in Resources */ = {isa = PBXBuildFile; fileRef = A99AA12E1ADD028400574B12 /* Icon120.png */; };
A9B4A9541AEDC3620017C655 /* FeedbackViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A9B4A9521AEDC3620017C655 /* FeedbackViewController.m */; };
A9B4A9551AEDC3620017C655 /* FeedbackViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9B4A9531AEDC3620017C655 /* FeedbackViewController.xib */; };
A9B4E39F1AC9908E00A1DBDF /* libMobClickLibrary.a in Frameworks */ = {isa = PBXBuildFile; fileRef = A9B4E39C1AC9908E00A1DBDF /* libMobClickLibrary.a */; };
A9BE23BF1ACD8CA20032171A /* libSocialSina.a in Frameworks */ = {isa = PBXBuildFile; fileRef = A9BE23BD1ACD8CA20032171A /* libSocialSina.a */; };
A9E2711B1ADB97ED000B1542 /* Default-568h.png in Resources */ = {isa = PBXBuildFile; fileRef = A9E271191ADB97ED000B1542 /* Default-568h.png */; };
@@ -471,6 +473,9 @@
A99AA12A1ADCCB3C00574B12 /* MessageViewModel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MessageViewModel.h; sourceTree = "<group>"; };
A99AA12B1ADCCB3C00574B12 /* MessageViewModel.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MessageViewModel.m; sourceTree = "<group>"; };
A99AA12E1ADD028400574B12 /* Icon120.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Icon120.png; sourceTree = "<group>"; };
A9B4A9511AEDC3620017C655 /* FeedbackViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FeedbackViewController.h; sourceTree = "<group>"; };
A9B4A9521AEDC3620017C655 /* FeedbackViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FeedbackViewController.m; sourceTree = "<group>"; };
A9B4A9531AEDC3620017C655 /* FeedbackViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = FeedbackViewController.xib; sourceTree = "<group>"; };
A9B4E39C1AC9908E00A1DBDF /* libMobClickLibrary.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libMobClickLibrary.a; sourceTree = "<group>"; };
A9B4E39D1AC9908E00A1DBDF /* MobClick.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MobClick.h; sourceTree = "<group>"; };
A9B4E39E1AC9908E00A1DBDF /* MobClickSocialAnalytics.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MobClickSocialAnalytics.h; sourceTree = "<group>"; };
@@ -620,6 +625,9 @@
A98536881AEBDDAB000312BF /* ModifyPassWordViewController.h */,
A98536891AEBDDAB000312BF /* ModifyPassWordViewController.m */,
A985368A1AEBDDAB000312BF /* ModifyPassWordViewController.xib */,
A9B4A9511AEDC3620017C655 /* FeedbackViewController.h */,
A9B4A9521AEDC3620017C655 /* FeedbackViewController.m */,
A9B4A9531AEDC3620017C655 /* FeedbackViewController.xib */,
);
path = My;
sourceTree = "<group>";
@@ -1284,6 +1292,7 @@
A97DBE481ACAE7F600705682 /* smalliconWeixin@2x.png in Resources */,
A97DBE441ACAE61400705682 /* first-login-qq@2x.png in Resources */,
A9FAD42D1AC923E2007ADC10 /* MessageViewController.xib in Resources */,
A9B4A9551AEDC3620017C655 /* FeedbackViewController.xib in Resources */,
A98F986C1ACA2FA9007C4594 /* BaseRefreshViewController.xib in Resources */,
A955109D1AC39E6A0006D16F /* Images.xcassets in Resources */,
A97DBE4C1ACAEBE300705682 /* first-login-sina@2x.png in Resources */,
@@ -1453,6 +1462,7 @@
A98D659D1AD37F18008668EE /* MessageTableViewCell.m in Sources */,
A96862711ACCF13300DDAA6B /* PSTCollectionViewController.m in Sources */,
A96862431ACCF0B400DDAA6B /* MWCaptionView.m in Sources */,
A9B4A9541AEDC3620017C655 /* FeedbackViewController.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -282,11 +282,11 @@
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Ash_AWord/ViewControllers/My/SetUpViewController.m"
timestampString = "451665615.942671"
timestampString = "451790257.979938"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "85"
endingLineNumber = "85"
startingLineNumber = "86"
endingLineNumber = "86"
landmarkName = "-tableView:cellForRowAtIndexPath:"
landmarkType = "5">
</BreakpointContent>
@@ -1586,5 +1586,37 @@
landmarkType = "5">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Ash_AWord/ViewControllers/Main/NoteViewController.m"
timestampString = "451788900.298477"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "120"
endingLineNumber = "120"
landmarkName = "-checkUpdate"
landmarkType = "5">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Ash_AWord/ViewControllers/Main/NoteViewController.m"
timestampString = "451788901.306465"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "121"
endingLineNumber = "121"
landmarkName = "-checkUpdate"
landmarkType = "5">
</BreakpointContent>
</BreakpointProxy>
</Breakpoints>
</Bucket>
@@ -0,0 +1,16 @@
//
// FeedbackViewController.h
// Ash_AWord
//
// Created by xmfish on 15/4/27.
// Copyright (c) 2015年 ash. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "UIPlaceHolderTextView.h"
@interface FeedbackViewController : UIViewController
@property (weak, nonatomic) IBOutlet UIPlaceHolderTextView *contentTextView;
- (IBAction)completeBtnClick:(id)sender;
@end
@@ -0,0 +1,67 @@
//
// FeedbackViewController.m
// Ash_AWord
//
// Created by xmfish on 15/4/27.
// Copyright (c) 2015年 ash. All rights reserved.
//
#import "FeedbackViewController.h"
@interface FeedbackViewController ()<UITextViewDelegate>
@end
@implementation FeedbackViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
self.navigationItem.title = @"意见反馈";
[self customViewDidLoad];
_contentTextView.placeholder = @"感谢您提出宝贵的意见";
_contentTextView.delegate = self;
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"确定" style:UIBarButtonItemStyleDone target:self action:@selector(completeBtnClick:)];
UITapGestureRecognizer *singleRecognizer = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(singleTap:)];
singleRecognizer.numberOfTapsRequired = 1;
[self.view addGestureRecognizer:singleRecognizer];
}
-(void)singleTap:(UITapGestureRecognizer*)recognizer
{
[self.view endEditing:YES];
}
//当用户按下return键或者按回车键,keyboard消失
-(BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text
{
if ([text isEqualToString:@"\n"]) {
[textView resignFirstResponder];
}
return YES;
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
/*
#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.
}
*/
- (IBAction)completeBtnClick:(id)sender {
if(_contentTextView.text.length <= 0){
[MBProgressHUD errorHudWithView:nil label:@"请输入内容" hidesAfter:1.0];
}
}
@end
@@ -0,0 +1,59 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="7702" systemVersion="14A389" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7701"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="FeedbackViewController">
<connections>
<outlet property="contentTextView" destination="OgJ-gv-FzX" id="W4I-kg-lac"/>
<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="320" height="568"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="OgJ-gv-FzX" customClass="UIPlaceHolderTextView">
<rect key="frame" x="0.0" y="10" width="320" height="150"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstAttribute="height" constant="150" id="2cA-eJ-Hq4"/>
</constraints>
</view>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="cTC-0r-dZk">
<rect key="frame" x="20" y="200" width="280" height="40"/>
<color key="backgroundColor" red="0.3803921569" green="0.74901960779999999" blue="0.66274509800000003" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="40" id="Bh7-zS-aQ4"/>
<constraint firstAttribute="width" constant="320" id="tUt-24-MDL"/>
</constraints>
<state key="normal" title="确定">
<color key="titleColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
</state>
<variation key="default">
<mask key="constraints">
<exclude reference="tUt-24-MDL"/>
</mask>
</variation>
<connections>
<action selector="completeBtnClick:" destination="-1" eventType="touchUpInside" id="fnx-z1-bXb"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="cTC-0r-dZk" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="20" id="4h4-fj-aJO"/>
<constraint firstItem="cTC-0r-dZk" firstAttribute="top" secondItem="OgJ-gv-FzX" secondAttribute="bottom" constant="40" id="Et0-X1-O4P"/>
<constraint firstAttribute="trailing" secondItem="cTC-0r-dZk" secondAttribute="trailing" constant="20" id="J0H-fI-ugq"/>
<constraint firstItem="OgJ-gv-FzX" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="S8G-9F-kOA"/>
<constraint firstItem="OgJ-gv-FzX" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" constant="10" id="rwc-1M-sGb"/>
<constraint firstAttribute="trailing" secondItem="OgJ-gv-FzX" secondAttribute="trailing" id="vhb-LG-oAg"/>
</constraints>
<simulatedScreenMetrics key="simulatedDestinationMetrics" type="retina4"/>
</view>
</objects>
</document>
@@ -11,6 +11,7 @@
#import "UMSocial.h"
#import "ModifyPassWordViewController.h"
#import "AppDelegate.h"
#import "FeedbackViewController.h"
@interface SetUpViewController ()<UIAlertViewDelegate>
@end
@@ -34,8 +35,8 @@
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
if([AWordUser sharedInstance].isLogin)
return 7;
return 6;
return 8;
return 7;
}
-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
{
@@ -110,13 +111,15 @@
break;
case 5:
cell.textLabel.text = @"用户须知";
cell.textLabel.text = @"意见反馈";
break;
case 6:
cell.textLabel.text = @"密码修改";
break;
case 7:
cell.textLabel.text = @"用户须知";
break;
default:
break;
}
@@ -143,17 +146,25 @@
[self goToAppraisal];
break;
case 5:
[self showUserNotice];
[self goFeedback];
break;
case 6:
[self modifyPsw];
break;
case 7:
[self showUserNotice];
break;
default:
break;
}
}
#pragma mark 跳到App Store评价
-(void)goFeedback
{
FeedbackViewController* feedbackViewController = [[FeedbackViewController alloc] init];
[self.navigationController pushViewController:feedbackViewController animated:YES];
}
-(void)modifyPsw
{
ModifyPassWordViewController* modifyPassWordViewController = [[ModifyPassWordViewController alloc] init];