storyboard.showOverlay() doesn't work

Hi,I am creating a game that need the storyboard overlay,but when I putted in the code,it doesn’t work as others did,what’s the problem here?And sometime,the code that I putted in doesn’t work on simulator but worked on actual devices,why?