PhilippeBoisney / AlertOnboarding

A simple and attractive AlertView to onboard your users in your amazing world.
MIT License
842 stars 109 forks source link

alertView.show() not working in UIViewController #5

Closed DJM0 closed 8 years ago

DJM0 commented 8 years ago

Following the usage I can't get this to work. Calling it from my viewDidLoad() in iOS 9.0 installed using cocoapods.

After calling alertView.show(), print(alertView) shows:

<AlertOnboarding.AlertOnboarding: 0x144d43e00; frame = (0 0; 0 0); clipsToBounds = YES; layer = <CALayer: 0x144d338f0>>

Am I doing anything wrong or do I need to do something else?

PhilippeBoisney commented 8 years ago

It seems strange.. Did you called the initializer before show alertView ? You can see the ViewController.swift file for a complete example to how to use the alertView.

PhilippeBoisney commented 8 years ago

And don't forget to show the alertview after the UIViewController is created ;) (For example in viewDidAppear)