Popularity
0.9
Stable
Activity
0.0
Stable
28
1
2

Programming language: Objective-C
License: MIT License
Tags: UI     Rating Stars    
Latest version: v0.1.1

RPInteraction alternatives and similar libraries

Based on the "Rating Stars" category.
Alternatively, view RPInteraction alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of RPInteraction or a related project?

Add another 'Rating Stars' Library

README

RPInteraction

Version License Platform Build Status

[demo](Screenshots/rpinteraction.gif)

Overview

Review page interaction - handy and pretty way to ask for review. Inspired by dribbble shot.

Requirements

  • iOS8

Installation

RPInteraction is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'RPInteraction'

Usage

@import RPInteraction;

RPViewController *vc = [RPViewController new];

[vc onConfirmHandler:^(RPRate rate) {
    switch (rate) {
        case RPRateBad:
            titleLabel.text = @"BAD";
            break;
        case RPRateUgh:
            titleLabel.text = @"UGH";
            break;
        case RPRateOk:
            titleLabel.text = @"OK";
            break;
        case RPRateGood:
            titleLabel.text = @"GOOD";
            break;
    }
    [self dismissViewControllerAnimated:YES completion:nil];
}];

[vc onCancelHandler:^{
    [self dismissViewControllerAnimated:YES completion:nil];
}];

[self presentViewController:vc animated:YES completion:nil];

Available properties

Property Type Default Value
rateTitle NSString How was your experience with us?
badTitle NSString BAD
ughTitle NSString UGH
okTitle NSString OK
goodTitle NSString GOOD
confirmTitle NSString SUBMIT
rateTitleFont UIFont [UIFont systemFontOfSize:24]
confirmTitleFont UIFont [UIFont systemFontOfSize:24]
backgroundColor UIColor #FFFFFF
closeIconColor UIColor #656565
rateTitleColor UIColor #656565
reelTitleColor UIColor #FFFFFF
confirmTitleColor UIColor #FFFFFF
badTitleColor UIColor #FE5C6E
ughTitleColor UIColor #F6BC7E
okTitleColor UIColor #28CDFC
goodTitleColor UIColor #41F8C7
badStartGradientColor UIColor #FE0D46
badEndGradientColor UIColor #FEAD96
ughStartGradientColor UIColor #F9D975
ughEndGradientColor UIColor #F39F86
okStartGradientColor UIColor #12E6F9
okEndGradientColor UIColor #41B0FD
goodStartGradientColor UIColor #3EE882
goodEndGradientColor UIColor #3DF9CF

Example Project

An example project is included with this repo. To run the example project, clone the repo, and run pod install from the Example directory first.

Author

nbolatov, [email protected]

License

RPInteraction is available under the MIT license. See the LICENSE file for more info.


*Note that all licence references and agreements mentioned in the RPInteraction README section above are relevant to that project's source code only.