-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expand file tree
/
Copy pathHelpViewController.m
More file actions
43 lines (37 loc) · 1.19 KB
/
HelpViewController.m
File metadata and controls
43 lines (37 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//
// HelpViewController.m
// Coding_iOS
//
// Created by Ease on 2016/9/8.
// Copyright © 2016年 Coding. All rights reserved.
//
#import "HelpViewController.h"
#import "EditTopicViewController.h"
@implementation HelpViewController
+ (instancetype)vcWithHelpStr{
NSString *curUrlStr;
if (kTarget_Enterprise) {
curUrlStr = @"help";
}else{
curUrlStr = @"/help/doc/mobile";
}
NSURL *curUrl = [NSURL URLWithString:curUrlStr relativeToURL:[NSURL URLWithString:[NSObject baseURLStr]]];
return [[self alloc] initWithURL:curUrl];
}
- (void)setTitle:(NSString *)title{
[super setTitle:@"帮助中心"];
}
- (void)viewDidLoad{
[super viewDidLoad];
if (!kTarget_Enterprise) {
[self.navigationItem setRightBarButtonItem:[[UIBarButtonItem alloc] initWithTitle:@"反馈" style:UIBarButtonItemStylePlain target:self action:@selector(goToFeedBack)] animated:YES];
}
}
- (void)goToFeedBack{
EditTopicViewController *vc = [[EditTopicViewController alloc] init];
vc.curProTopic = [ProjectTopic feedbackTopic];
vc.type = TopicEditTypeFeedBack;
vc.topicChangedBlock = nil;
[self.navigationController pushViewController:vc animated:YES];
}
@end