Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Commit

Permalink
删除说明
Browse files Browse the repository at this point in the history
  • Loading branch information
buginux committed Feb 26, 2017
1 parent a916f70 commit 2b4a045
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 28 deletions.
15 changes: 0 additions & 15 deletions Introduction/Introduction.md

This file was deleted.

15 changes: 2 additions & 13 deletions src/WBSettingViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -210,33 +210,22 @@ - (MMTableViewSectionInfo *)createAbortRemokeMessageLimitCell {
- (void)addAboutSection {
MMTableViewSectionInfo *sectionInfo = [objc_getClass("MMTableViewSectionInfo") sectionInfoDefaut];

[sectionInfo addCell:[self createIntroductionCell]];
[sectionInfo addCell:[self createGithubCell]];
[sectionInfo addCell:[self createBlogCell]];

[self.tableViewInfo addSection:sectionInfo];
}

- (MMTableViewCellInfo *)createIntroductionCell {
return [objc_getClass("MMTableViewCellInfo") normalCellForSel:@selector(showIntroduction) target:self title:@"使用说明" accessoryType:1];
}

- (MMTableViewCellInfo *)createGithubCell {
return [objc_getClass("MMTableViewCellInfo") normalCellForSel:@selector(showGithub) target:self title:@"我的 Github" accessoryType:1];
return [objc_getClass("MMTableViewCellInfo") normalCellForSel:@selector(showGithub) target:self title:@"我的 Github" rightValue: @"★ star" accessoryType:1];
}

- (MMTableViewCellInfo *)createBlogCell {
return [objc_getClass("MMTableViewCellInfo") normalCellForSel:@selector(showBlog) target:self title:@"我的博客" accessoryType:1];
}

- (void)showIntroduction {
NSURL *introductionUrl = [NSURL URLWithString:@"https://github.com/buginux/WeChatRedEnvelop/blob/RedEnvelopPro/Introduction/Introduction.md"];
MMWebViewController *webViewController = [[objc_getClass("MMWebViewController") alloc] initWithURL:introductionUrl presentModal:NO extraInfo:nil];
[self.navigationController PushViewController:webViewController animated:YES];
}

- (void)showGithub {
NSURL *gitHubUrl = [NSURL URLWithString:@"https://www.github.com/buginux"];
NSURL *gitHubUrl = [NSURL URLWithString:@"https://github.com/buginux/WeChatRedEnvelop"];
MMWebViewController *webViewController = [[objc_getClass("MMWebViewController") alloc] initWithURL:gitHubUrl presentModal:NO extraInfo:nil];
[self.navigationController PushViewController:webViewController animated:YES];
}
Expand Down

0 comments on commit 2b4a045

Please sign in to comment.