how to detect first launch

In every app it’s very good to know if the user launch it first time or not. This code can solve the problem.

O.. in ViewDidLoad{}