Skip to content

SebangsaHQ/WSAlertRating

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WSAlertRating

A library to help you show rating alert. This library actually an Alertview but i made subclass from it to be rating alert.

alt text

Usage

don't forget to import WSAlertRating.h file to your controller

#import WSAlertRating.h

then call AlertRating using this below code :

    WSAlertRating *alertRating = [[WSAlertRating alloc] initAlertControllerWithTitle:@"Title Alert Rate" message:@"this is message, you can write anything here."];
    UIAlertAction *cancel = [UIAlertAction actionWithTitle:@"Cancel" style:UIAlertActionStyleCancel handler:nil];
    UIAlertAction *send = [UIAlertAction actionWithTitle:@"Send" style:UIAlertActionStyleDefault handler:^(UIAlertAction *alert){
        
        // you can do anything you want here when send button touched
        
        if (alertRating.ratingScore) //
            NSLog(@"catch rating score with alertRating.ratingScore %@", alertRating.ratingScore);
        
    }];
    [alertRating addAction:send];
    [alertRating addAction:cancel];
    [self presentViewController:alertRating animated:YES completion:nil];

About

Objective-c library to show rating with alertview.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published