Closed jgebbeken closed 8 years ago
EZLoadingActivity.show
should be called first then EZLoadingActivity.hide
should be called.
If you didn't create the instance first it will warn (the instance is created when EZLoadingActivity.show
is called)
public static func hide(success success: Bool? = nil, animated: Bool = false) -> Bool {
guard instance != nil else {
print("EZLoadingActivity: You don't have an activity instance")
return false
}
...
}
Its not a problem when that prints, meaning you won't get bugs or crashes. But you probably wrote your code incorrectly and might consider changing it.
I'm getting an EZLoadingActivity: You don't have an activity Instance problem when trying to call up EZLoadingActivity.hide(success: false, animated: true)