diff --git a/examples/platform_view/ios/Runner/Base.lproj/Main.storyboard b/examples/platform_view/ios/Runner/Base.lproj/Main.storyboard index 683d7d0f625..14d6e6d8fac 100644 --- a/examples/platform_view/ios/Runner/Base.lproj/Main.storyboard +++ b/examples/platform_view/ios/Runner/Base.lproj/Main.storyboard @@ -129,7 +129,7 @@ - + diff --git a/examples/platform_view/ios/Runner/PlatformViewController.m b/examples/platform_view/ios/Runner/PlatformViewController.m index 6e813af0e15..cfa647f6d81 100644 --- a/examples/platform_view/ios/Runner/PlatformViewController.m +++ b/examples/platform_view/ios/Runner/PlatformViewController.m @@ -7,19 +7,19 @@ #import @interface PlatformViewController () -@property(weak, nonatomic) IBOutlet UILabel* incrementLabel; +@property(weak, nonatomic) IBOutlet UILabel* countLabel; @end @implementation PlatformViewController - (void)viewDidLoad { [super viewDidLoad]; - [self setIncrementLabelText]; + [self updateCountLabelText]; } - (IBAction)handleIncrement:(id)sender { self.counter++; - [self setIncrementLabelText]; + [self updateCountLabelText]; } - (IBAction)switchToFlutterView:(id)sender { @@ -27,10 +27,10 @@ [self dismissViewControllerAnimated:NO completion:nil]; } -- (void)setIncrementLabelText { +- (void)updateCountLabelText { NSString* text = [NSString stringWithFormat:@"Button tapped %d %@.", self.counter, (self.counter == 1) ? @"time" : @"times"]; - self.incrementLabel.text = text; + self.countLabel.text = text; } @end