As you all know, UITableView has a reloaddata method that can tableview refresh the view. And the normal view above. How do we refresh the view?
I did it. A user is logged in to display the user's nickname and personality Signature as well as the Avatar's interface. When the user logs in, jumps to this page, and then displays the user's simple information. When you click Sign Out, the information disappears.
My approach is to "-(void) Viewwillappear: (BOOL) animated" When the view is going to appear "
Again called "[Self.view addsubview:headimg];" This method. And then when the view is going to jump:
-(void) Viewwilldisappear: (BOOL) animated
Call:
[Headimg Removefromsuperview];
This method.
In this way, the user data is transmitted, you can log in after the user to refresh the user's information.
)
How iOS refreshes what's displayed on the view