In my TabBar based iPhone application, I would like to display a full screen welcome page (with some logs) before the actual application loads, How can I load a UIView from xib file as the welcome screen and then from there I can load my TabBar based application.
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- Could I create “Call” button in HTML 5 IPhone appl
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Unable to process app at this time due to a genera
- Swift - hide pickerView after value selected
- How do you detect key up / key down events from a
In one of my tab-bar apps, I display a splash screen like so:
In my app delegate object, I start displaying it in didFinishLaunchingWithOptions
The onSlashScreenExpired method looks like:
I'm fairly certain I cobbled this together from another question on SO, but I can't find it.
The right way to do this would be to load your tab bar application normally, but use the
presentModalViewController:animated:
method of the tab bar controller to display a view controller over it (inapplication:didFinishLaunching:
):I'll usually put a "dismiss" button on the splash screen, but you could also do something like this:
which will present the view controller at launch and dismiss it after two seconds. Change the
YES
es toNO
s to avoid the slide-up-from-the-bottom animation.I add a subView to the main window in the appDelegate:
Then in the LoginViewController, when I'm ready to dismiss the View (to show YOUR tabController say) I do:
The UI guidelines say you shouldn't have a splash screen - you should present a dummy version of the view the user will see when the application loads, without any data in it:
see Apple iPhone UI Guidelines on Launch Images for details - here's an excerpt: