author | Wuzzy <almikes@aol.com> |
Thu, 24 Nov 2016 03:53:56 +0100 | |
changeset 12055 | ddf0fee75449 |
parent 11177 | 015596575698 |
child 12872 | 00215a7ec5f5 |
permissions | -rw-r--r-- |
11176
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
1 |
/* |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
2 |
* Hedgewars-iOS, a Hedgewars port for iOS devices |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
3 |
* Copyright (c) 2015 Anton Malmygin <antonc27@mail.ru> |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
4 |
* |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
5 |
* This program is free software; you can redistribute it and/or modify |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
6 |
* it under the terms of the GNU General Public License as published by |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
7 |
* the Free Software Foundation; version 2 of the License |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
8 |
* |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
9 |
* This program is distributed in the hope that it will be useful, |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
12 |
* GNU General Public License for more details. |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
13 |
* |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
14 |
* You should have received a copy of the GNU General Public License |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
15 |
* along with this program; if not, write to the Free Software |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
16 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
17 |
*/ |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
18 |
|
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
19 |
#import "GameLogViewController.h" |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
20 |
|
11177
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
21 |
#ifdef DEBUG |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
22 |
#import <MessageUI/MFMailComposeViewController.h> |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
23 |
#endif |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
24 |
|
11176
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
25 |
@interface GameLogViewController () |
11177
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
26 |
#ifdef DEBUG |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
27 |
<MFMailComposeViewControllerDelegate> |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
28 |
#endif |
11176
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
29 |
|
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
30 |
@end |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
31 |
|
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
32 |
@implementation GameLogViewController |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
33 |
|
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
34 |
#pragma mark - View life cycle |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
35 |
|
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
36 |
- (void)viewDidLoad |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
37 |
{ |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
38 |
[super viewDidLoad]; |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
39 |
|
11177
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
40 |
self.title = @"Last game log"; |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
41 |
|
11176
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
42 |
UIBarButtonItem *closeButton = [[UIBarButtonItem alloc] initWithTitle:@"Close" style:UIBarButtonItemStylePlain target:self action:@selector(dismissAction)]; |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
43 |
self.navigationItem.rightBarButtonItem = closeButton; |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
44 |
[closeButton release]; |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
45 |
|
11177
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
46 |
#ifdef DEBUG |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
47 |
if ([self allowSendLogByEmail]) |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
48 |
{ |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
49 |
UIBarButtonItem *sendButton = [[UIBarButtonItem alloc] initWithTitle:@"Send" style:UIBarButtonItemStylePlain target:self action:@selector(sendLogByEmailAction)]; |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
50 |
self.navigationItem.leftBarButtonItem = sendButton; |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
51 |
[sendButton release]; |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
52 |
} |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
53 |
#endif |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
54 |
|
11176
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
55 |
NSString *debugStr = nil; |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
56 |
if ([[NSFileManager defaultManager] fileExistsAtPath:DEBUG_FILE()]) |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
57 |
debugStr = [[NSString alloc] initWithContentsOfFile:DEBUG_FILE() encoding:NSUTF8StringEncoding error:nil]; |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
58 |
else |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
59 |
debugStr = [[NSString alloc] initWithString:@"Here be log"]; |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
60 |
|
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
61 |
UITextView *logView = [[UITextView alloc] initWithFrame:self.view.frame]; |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
62 |
[logView setAutoresizingMask:(UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth)]; |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
63 |
logView.text = debugStr; |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
64 |
[debugStr release]; |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
65 |
logView.editable = NO; |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
66 |
|
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
67 |
[self.view addSubview:logView]; |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
68 |
[logView release]; |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
69 |
} |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
70 |
|
11177
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
71 |
#pragma mark - Parameters |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
72 |
|
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
73 |
#ifdef DEBUG |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
74 |
- (BOOL)allowSendLogByEmail |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
75 |
{ |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
76 |
return ([MFMailComposeViewController canSendMail] && [[NSFileManager defaultManager] fileExistsAtPath:DEBUG_FILE()]); |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
77 |
} |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
78 |
#endif |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
79 |
|
11176
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
80 |
#pragma mark - Actions |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
81 |
|
11177
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
82 |
#ifdef DEBUG |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
83 |
- (void)sendLogByEmailAction |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
84 |
{ |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
85 |
MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init]; |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
86 |
picker.mailComposeDelegate = self; |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
87 |
[picker setSubject:@"Log file of iHedgewars game"]; |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
88 |
|
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
89 |
// Attach a log file to the email |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
90 |
NSData *logData = [NSData dataWithContentsOfFile:DEBUG_FILE()]; |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
91 |
[picker addAttachmentData:logData mimeType:@"text/plain" fileName:@"game0.log"]; |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
92 |
|
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
93 |
// Fill out the email body text |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
94 |
NSString *emailBody = @"Add here description of a problem/log"; |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
95 |
[picker setMessageBody:emailBody isHTML:NO]; |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
96 |
|
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
97 |
[self presentViewController:picker animated:YES completion:nil]; |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
98 |
[picker release]; |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
99 |
} |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
100 |
#endif |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
101 |
|
11176
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
102 |
- (void)dismissAction |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
103 |
{ |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
104 |
[self dismissViewControllerAnimated:YES completion:nil]; |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
105 |
} |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
106 |
|
11177
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
107 |
#pragma mark - MailCompose delegate |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
108 |
|
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
109 |
#ifdef DEBUG |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
110 |
- (void)mailComposeController:(MFMailComposeViewController*)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError*)error |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
111 |
{ |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
112 |
// Notifies users about errors associated with the interface |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
113 |
switch (result) |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
114 |
{ |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
115 |
case MFMailComposeResultCancelled: |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
116 |
NSLog(@"MailComposeResult: canceled"); |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
117 |
break; |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
118 |
case MFMailComposeResultSaved: |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
119 |
NSLog(@"MailComposeResult: saved"); |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
120 |
break; |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
121 |
case MFMailComposeResultSent: |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
122 |
NSLog(@"MailComposeResult: sent"); |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
123 |
break; |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
124 |
case MFMailComposeResultFailed: |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
125 |
NSLog(@"MailComposeResult: failed"); |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
126 |
break; |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
127 |
default: |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
128 |
NSLog(@"MailComposeResult: not sent"); |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
129 |
break; |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
130 |
} |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
131 |
|
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
132 |
[self dismissViewControllerAnimated:YES completion:nil]; |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
133 |
} |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
134 |
#endif |
015596575698
- Possibility to send log file by email from app
antonc27 <antonc27@mail.ru>
parents:
11176
diff
changeset
|
135 |
|
11176
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
136 |
#pragma mark - Memory warning |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
137 |
|
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
138 |
- (void)didReceiveMemoryWarning |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
139 |
{ |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
140 |
[super didReceiveMemoryWarning]; |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
141 |
// Dispose of any resources that can be recreated. |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
142 |
} |
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
143 |
|
906c1878bc2c
- Refactoring. Separation of game log viewing code to GameLogViewController
antonc27 <antonc27@mail.ru>
parents:
diff
changeset
|
144 |
@end |