UIActionSheet takes longer to load

are their reasons why my UIActionSheet will take some time to load. It works fine right after lauch, but as soon as I scroll through some actions once or twice, it loads very slowly, and you can see how the gray background scans down to finish drawing the sheet.

help?

Sam

+3
source share
1 answer

Ok, so I found a solution in a few minutes. I guess this is how it works, feel free to correct me. U used the way to animate cheats [UIView] and I assume that it changed the way the UIActionSheet is displayed, so I wrote on these two lines before I asked him to show show.in.view

 - (IBAction)goToBlog{

contactUs.actionSheetStyle = UIActionSheetStyleDefault;
[UIActionSheet setAnimationDelay:0];
[UIActionSheet setAnimationDuration:0.1];
[contactUs showInView:self.view];



}

, , . .

0

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


All Articles