https://github.com/hyperoslo/hyplocalnotificationmanager
Handle local notifications like a pro
https://github.com/hyperoslo/hyplocalnotificationmanager
Last synced: about 1 year ago
JSON representation
Handle local notifications like a pro
- Host: GitHub
- URL: https://github.com/hyperoslo/hyplocalnotificationmanager
- Owner: hyperoslo
- License: other
- Created: 2014-04-15T15:38:56.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-04-15T17:35:59.000Z (about 12 years ago)
- Last Synced: 2024-10-31T16:12:46.710Z (over 1 year ago)
- Language: Objective-C
- Homepage:
- Size: 488 KB
- Stars: 9
- Watchers: 17
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
HYPLocalNotificationManager
===========================
Handle local notifications like a pro.
# How to
Adding a notification has never been easier.
```objc
- (void)addLocalNotification
{
NSInteger seconds = arc4random_uniform(10) + 10;
NSString *soundName = @"alarm.caf";
NSString *message = [NSString stringWithFormat:@"%ld seconds", (long)seconds];
NSString *actionTitle = @"The best alarm ever just finished!";
[HYPLocalNotificationManager createNotificationUsingNumberOfSeconds:seconds
soundName:soundName
message:message
actionTitle:actionTitle
alarmID:message];
}
```
Contributions
=============
If there's something you would like to improve please create a friendly and constructive issue, getting your feedback would be awesome. Have a great day.