What is the difference between self.navigationController and delegate.navigationController

I can use

MyFirstAppDelegate *delegate = (MyFirstAppDelegate *)[[UIApplication sharedApplication] delegate];
[delegate.navigationController popViewControllerAnimated:YES];

or

[self.navigationController popViewControllerAnimated:YES];

So what is the difference between both?

Please answer me...

Thanks in advance.

+3
source share
2 answers

, , , . , , . , , , .

, . , .

+6

, , , .

, .

, .

+4

Source: https://habr.com/ru/post/1728611/


All Articles