Skip to content

Commit

Permalink
add MessageCell
Browse files Browse the repository at this point in the history
  • Loading branch information
mszren committed Dec 18, 2015
1 parent 0e51776 commit 7b65065
Show file tree
Hide file tree
Showing 73 changed files with 1,928 additions and 187 deletions.
Binary file modified .DS_Store
Binary file not shown.
250 changes: 244 additions & 6 deletions Diary.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
type = "0"
version = "2.0">
<Breakpoints>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.SwiftErrorBreakpoint">
<BreakpointContent
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.ExceptionBreakpoint">
<BreakpointContent
Expand Down
Binary file modified Diary/.DS_Store
Binary file not shown.
Binary file modified Diary/Controllers/.DS_Store
Binary file not shown.
Binary file modified Diary/Controllers/Message/.DS_Store
Binary file not shown.
8 changes: 7 additions & 1 deletion Diary/Controllers/Message/AddFriendController.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#import "NearPersonController.h"
#import "InviteController.h"
#import "BaseNavigation.h"
#import "ScanController.h"

@interface AddFriendController ()

Expand Down Expand Up @@ -45,7 +46,12 @@ - (void)onTap:(UITapGestureRecognizer *)sender{
case 100:

break;
case 101:
case 101:{

ScanController *scanVc= [ScanController new];
scanVc.hidesBottomBarWhenPushed = YES;
[self.navigationController pushViewController:scanVc animated:YES];
}

break;
case 102:{
Expand Down
15 changes: 0 additions & 15 deletions Diary/Controllers/Message/AddressBookController.h

This file was deleted.

149 changes: 0 additions & 149 deletions Diary/Controllers/Message/AddressBookController.m

This file was deleted.

7 changes: 7 additions & 0 deletions Diary/Controllers/Message/AdressBookController.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#import "FriendCell.h"
#import "AddFriendController.h"
#import "BaseNavigation.h"
#import "ChatController.h"

@interface AdressBookController () <UITableViewDataSource,UITableViewDelegate,DZNEmptyDataSetDelegate,DZNEmptyDataSetSource,UISearchBarDelegate>

Expand Down Expand Up @@ -84,6 +85,12 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
return friendCell;
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
ChatController *chatVc = [ChatController new];
chatVc.hidesBottomBarWhenPushed = YES;
[self.navigationController pushViewController:chatVc animated:YES];
}

#pragma mark DZNEmptyDataSetDelegate,DZNEmptyDataSetSource
-(NSAttributedString *)titleForEmptyDataSet:(UIScrollView *)scrollView{

Expand Down
13 changes: 13 additions & 0 deletions Diary/Controllers/Message/ChatController.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// ChatController.h
// Diary
//
// Created by 我 on 15/12/17.
// Copyright © 2015年 Owen. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface ChatController : UIViewController

@end
Loading

0 comments on commit 7b65065

Please sign in to comment.