Closed core-design closed 10 years ago
Hello, in the AppDelegate I would like to open by an Alert View link to a storyboard with identifer.
This also works wonderfully. However, the REFrostedMenue will not load when clicking on the menu button?
I think I forget when switching pages to load the menu?
Unfortunately I program only a few months to fix the error yourself.
Best Thank you, Christopher - Austria
// AppDelegate.m
#import "AppDelegate.h" #import "NewsTab.h" - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex { NewsTab *NewsTabController=[[UIStoryboard storyboardWithName:[NSString stringWithFormat:@"Main_%@", deviceType] bundle:nil] instantiateViewControllerWithIdentifier:@"NewsViewController"]; UINavigationController *navController=[[UINavigationController alloc]initWithRootViewController:NewsTabController]; self.window.rootViewController = navController; }
// NewsTab.h
#import <UIKit/UIKit.h> #import "REFrostedViewController.h" @interface NewsTab : UITableViewController <UITableViewDelegate, UITableViewDataSource> - (IBAction)ButtonshowMenu:(id)sender; @end
// NewsTab.m
- (IBAction)ButtonshowMenu:(id)sender { NSLog(@"Go Go Go"); [self.view endEditing:YES]; [self.frostedViewController.view endEditing:YES]; [self.frostedViewController presentMenuViewController]; }
Hello, in the AppDelegate I would like to open by an Alert View link to a storyboard with identifer.
This also works wonderfully. However, the REFrostedMenue will not load when clicking on the menu button?
I think I forget when switching pages to load the menu?
Unfortunately I program only a few months to fix the error yourself.
Best Thank you, Christopher - Austria
// AppDelegate.m
// NewsTab.h
// NewsTab.m