Nextrek
Diff Revisions
440
vs
444
for /iOS/SafariArte/trunk/SafariArte/Controllers/MenuVC/MenuVC.m
|
@@ -16,7 +16,7 @@ |
16 |
16 |
|
#import "GenericWebViewVC.h" |
17 |
17 |
|
#import "RFRateMe.h" |
18 |
18 |
|
|
19 |
|
- |
@interface MenuVC () { |
|
19 |
+ |
@interface MenuVC ()<CustomIOSAlertViewDelegate> { |
20 |
20 |
|
NSArray *itemsArray; |
21 |
21 |
|
NSArray *imagesForItemsArray; |
22 |
22 |
|
NSInteger _presentedRow; |
|
@@ -167,22 +167,12 @@ |
167 |
167 |
|
|
168 |
168 |
|
//LOGOUT |
169 |
169 |
|
else if(indexPath.row == 9) { |
170 |
|
- |
[DATAMANAGER showMessageWithAlert:self message:NSLocalizedString(@"Logout", nil)]; |
|
170 |
+ |
[DATAMANAGER showMessageWithAlert:self message:NSLocalizedString(@"Logout", nil) tag:001]; |
171 |
171 |
|
} |
172 |
172 |
|
|
173 |
173 |
|
[tableView deselectRowAtIndexPath:indexPath animated:NO]; |
174 |
174 |
|
} |
175 |
175 |
|
|
176 |
|
- |
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex { |
177 |
|
- |
|
178 |
|
- |
if(buttonIndex == 1) { |
179 |
|
- |
|
180 |
|
- |
DATAMANAGER.user = nil; |
181 |
|
- |
[APPDEL initUser]; |
182 |
|
- |
|
183 |
|
- |
[APPDEL initWithLogin]; |
184 |
|
- |
} |
185 |
|
- |
} |
186 |
176 |
|
|
187 |
177 |
|
|
188 |
178 |
|
- (void) openMenuItem:(int) indexMenu { |
|
@@ -256,4 +246,19 @@ |
256 |
246 |
|
[super didReceiveMemoryWarning]; |
257 |
247 |
|
} |
258 |
248 |
|
|
|
249 |
+ |
|
|
250 |
+ |
- (void)customIOS7dialogButtonTouchUpInside: (CustomIOSAlertView *)alertView clickedButtonAtIndex: (NSInteger)buttonIndex |
|
251 |
+ |
{ |
|
252 |
+ |
|
|
253 |
+ |
if(buttonIndex == 0) { |
|
254 |
+ |
|
|
255 |
+ |
DATAMANAGER.user = nil; |
|
256 |
+ |
[APPDEL initUser]; |
|
257 |
+ |
|
|
258 |
+ |
[APPDEL initWithLogin]; |
|
259 |
+ |
} |
|
260 |
+ |
|
|
261 |
+ |
[alertView close]; |
|
262 |
+ |
} |
|
263 |
+ |
|
259 |
264 |
|
@end |