I found this code while looking for an iOS notification similar to Android Toast.
The code is available in a Github project found here: https://github.com/scalessec/Toast
It was just what I needed!
P.S. You can also make great loaders with this code 😉
- Add a pod entry to your Podfile pod
pod 'Toast', '~> 3.0'
- Install the pod(s) by running
- Include MBProgressHUD wherever you need it with:
Put the following code wherever you want to invoke the toast.
[self.view makeToast:@"This is a piece of toast with a specific duration." duration:3.0];
For displaying a loader with the activityspinner use
And to hide it: