Skip to content

Commit c3698d1

Browse files
authored
Merge pull request #23 from zzBelieve/patch-1
Word Modification
2 parents cdf0641 + f62b2a6 commit c3698d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flutter-for-ios.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,7 @@ MaterialApp(
972972

973973
### 我该怎么监听 iOS 中的生命周期事件?
974974

975-
在 iOS 中,你可以重写 `ViewController` 中的方法来补货它的视图的生命周期,或者在 `AppDelegate` 中注册生命周期的回调函数。在 Flutter 中没有这两个概念,但你可以通过 hook `WidgetsBinding` 观察者来监听生命周期事件,并监听 `didChangeAppLifecycleState()` 的变化事件。
975+
在 iOS 中,你可以重写 `ViewController` 中的方法来捕获它的视图的生命周期,或者在 `AppDelegate` 中注册生命周期的回调函数。在 Flutter 中没有这两个概念,但你可以通过 hook `WidgetsBinding` 观察者来监听生命周期事件,并监听 `didChangeAppLifecycleState()` 的变化事件。
976976

977977
可观察的生命周期事件有:
978978

0 commit comments

Comments
 (0)