forked from MailCore/mailcore2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request MailCore#191 from paulyoung/message-preview-in-exa…
…mples Add message preview to iOS example.
- Loading branch information
Showing
5 changed files
with
74 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// | ||
// MCTTableViewCell.h | ||
// iOS UI Test | ||
// | ||
// Created by Paul Young on 14/07/2013. | ||
// Copyright (c) 2013 AppJon. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
#import <MailCore/MailCore.h> | ||
|
||
@interface MCTTableViewCell : UITableViewCell | ||
|
||
@property (nonatomic, strong) MCOIMAPMessageRenderingOperation * messageRenderingOperation; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// | ||
// MCTTableViewCell.m | ||
// iOS UI Test | ||
// | ||
// Created by Paul Young on 14/07/2013. | ||
// Copyright (c) 2013 AppJon. All rights reserved. | ||
// | ||
|
||
#import "MCTTableViewCell.h" | ||
|
||
@implementation MCTTableViewCell | ||
|
||
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier | ||
{ | ||
self = [super initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:reuseIdentifier]; | ||
return self; | ||
} | ||
|
||
- (void)prepareForReuse | ||
{ | ||
[self.messageRenderingOperation cancel]; | ||
self.detailTextLabel.text = @" "; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters