i have a website inside an app and the laucnh screen is an xib file which will launch 80% of the time woks in testing on a ipad or iphone .. i have a "sleep (10)" in one of the app delegates for the launch screen to stay a while but afterwards the storyboard which is just a web view and some text at the bottom, wont show ..its just a black screen ...
problem with viewing web view storyboard in application
Never use sleep() on the main thread. It will stop your app from responding to user input and other events, and may cause the OS to kill it for being unresponsive. Use an NSTimer or performSelector:withObject:afterDelay: to do whatever you want after the specified time.
Any errors from testing or does it just do a silent fail?
Black screen could be a number of reasons, from the build needing an option-clean to a misnamed SB to a case where an outlet is set on the view controller.
If there are any outlets on the initial view controller (or, if the initial view controller is a navigation controller, the root view controller), the system will not render any launch image, and instead show a black screen.
There are others, so search here/google and see if any hit the mark.
thank you , i will delete the sleep() in app delegate file ..where shall i put " NSTimer OR performSelector:withObject:afterDelay: " (for example..app delegate h , app delagte d, viewcontroller...etc.)???