Summarize some common block-related retain cycle patterns.

- (void)presentNewViewController {
UIViewController *newVC = [UIViewController new];
newVC.completion = ^ {
newVC.title = @"some_title_after_completion";
[self presentViewController: newVC animated: YES];

In the above example, the retain cycle is newVC -> completion -> newVC

2. Superficial class method


This is to post is to keep a record of the know-hows and gotchas while learning and developing Flutter projects.

Each MaterialApp (or WidgetApp in general) will create one Navigator, which represents a navigation stack. In a general app, where there are multiple bottom tab bar items, each tab…


full-stack software engineer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store