aboutsummaryrefslogtreecommitdiffhomepage
path: root/example
diff options
context:
space:
mode:
authorGravatar Paul Young <paulyoungonline@gmail.com>2013-07-14 23:18:09 -0400
committerGravatar Paul Young <paulyoungonline@gmail.com>2013-07-14 23:18:09 -0400
commit94a1a8bc8eb5a43d4e7bcd3576e32aab034ef4a5 (patch)
treea32ec47b6c0f6a17a71db092b8e3a6130ca686de /example
parent7f7e86d9a24a9849a6d854073640ab3e95cb2168 (diff)
Cancelling ay previous rendering operation ASAP.
Diffstat (limited to 'example')
-rw-r--r--example/ios/iOS UI Test/iOS UI Test/MasterViewController.m5
1 files changed, 2 insertions, 3 deletions
diff --git a/example/ios/iOS UI Test/iOS UI Test/MasterViewController.m b/example/ios/iOS UI Test/iOS UI Test/MasterViewController.m
index accd9040..40aa791f 100644
--- a/example/ios/iOS UI Test/iOS UI Test/MasterViewController.m
+++ b/example/ios/iOS UI Test/iOS UI Test/MasterViewController.m
@@ -169,12 +169,11 @@ finishedRefreshWithFetcher:(GTMHTTPFetcher *)fetcher
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
MCTTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"Cell" forIndexPath:indexPath];
-
+ [cell.messageRenderingOperation cancel];
+
MCOIMAPMessage *message = self.messages[indexPath.row];
cell.textLabel.text = message.header.subject;
- [cell.messageRenderingOperation cancel];
-
cell.messageRenderingOperation = [self.imapSession plainTextBodyRenderingOperationWithMessage:message
folder:@"INBOX"];