Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New demo project #91

Open
ealeksandrov opened this issue Jan 11, 2015 · 2 comments
Open

New demo project #91

ealeksandrov opened this issue Jan 11, 2015 · 2 comments

Comments

@ealeksandrov
Copy link
Owner

Need beautiful demo with examples of most features.

@ealeksandrov ealeksandrov added this to the EAIntroView 3.0 milestone Jan 11, 2015
@acegreen
Copy link

acegreen commented Sep 9, 2015

Hello,

First off great library. I wanted to add a point to this issue.

A demo of the different setups in a tableView is great and makes sense but It would also be nice to see a proper implementation.

For example:

  1. Do we create a ViewController just view BEFORE our mainViewController or does this go on top of our mainViewController and just gets dismissed? Actually not sure about the proper way on this one.
  2. Also a way to log first login so this doesn't appear currently. Currently I do this using NSUserDefaults and checking against it in my didFinishLaunchingWithOptions method.

@ealeksandrov
Copy link
Owner Author

Thanks for suggestions. For 2 question your solution is ok. For 1 it really depends on your application UI and your code structure. In most cases you can present intro on your top root viewcontroller (tab bar controller, for example) or login view controller with animateDuration = 0 in viewDidLoad.

But better call it from your "router" object. For example, when you're creating root tab bar controller there, check NSUserDefaults and add EAIntroView on top of it if needed. In this case AppDelegate will just do something like

window = UIWindow(frame: UIScreen.mainScreen().bounds)
window?.rootViewController = Router.sharedInstance.rootViewController
window?.makeKeyAndVisible()

and all intro injecting code will be left in Router class.

@ealeksandrov ealeksandrov removed this from the EAIntroView 3.0 milestone Nov 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants