Commit acc7d110 authored by Chris Bracken's avatar Chris Bracken Committed by GitHub

Subclass FlutterAppDelegate in iOS examples (#7847)

Subclassing FlutterAppDelegate is not required for real-world apps, but
it's what 'flutter create' generates, and applies the default behaviours
that most real-world apps will want.
parent aaff608d
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#import <Flutter/Flutter.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate> @interface AppDelegate : FlutterAppDelegate
@property (strong, nonatomic) UIWindow *window;
@end @end
...@@ -3,9 +3,8 @@ ...@@ -3,9 +3,8 @@
// found in the LICENSE file. // found in the LICENSE file.
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#import <Flutter/Flutter.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate> @interface AppDelegate : FlutterAppDelegate
@property(strong, nonatomic) UIWindow *window;
@end @end
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#import <Flutter/Flutter.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate> @interface AppDelegate : FlutterAppDelegate
@property (strong, nonatomic) UIWindow *window;
@end @end
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#import <Flutter/Flutter.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate> @interface AppDelegate : FlutterAppDelegate
@property (strong, nonatomic) UIWindow *window;
@end @end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment