├── RFRateMeDemoTests
├── en.lproj
│ └── InfoPlist.strings
├── RFRateMeDemoTests-Info.plist
└── RFRateMeDemoTests.m
├── RFRateMeDemo.xcodeproj
├── project.xcworkspace
│ ├── contents.xcworkspacedata
│ ├── xcuserdata
│ │ ├── Funk.xcuserdatad
│ │ │ └── UserInterfaceState.xcuserstate
│ │ ├── rfunk.xcuserdatad
│ │ │ └── UserInterfaceState.xcuserstate
│ │ └── eugene_shcherbinock.xcuserdatad
│ │ │ └── UserInterfaceState.xcuserstate
│ └── xcshareddata
│ │ └── RFRateMeDemo.xccheckout
├── xcuserdata
│ ├── eugene_shcherbinock.xcuserdatad
│ │ ├── xcschemes
│ │ │ └── xcschememanagement.plist
│ │ └── xcdebugger
│ │ │ └── Breakpoints_v2.xcbkptlist
│ ├── Funk.xcuserdatad
│ │ ├── xcschemes
│ │ │ ├── xcschememanagement.plist
│ │ │ └── RFRateMeDemo.xcscheme
│ │ └── xcdebugger
│ │ │ └── Breakpoints_v2.xcbkptlist
│ └── rfunk.xcuserdatad
│ │ └── xcschemes
│ │ ├── xcschememanagement.plist
│ │ └── RFRateMeDemo.xcscheme
└── project.pbxproj
├── RFRateMeDemo
├── ViewController.h
├── AppDelegate.h
├── main.m
├── RFRateMeDemo-Prefix.pch
├── Images.xcassets
│ ├── AppIcon.appiconset
│ │ └── Contents.json
│ └── LaunchImage.launchimage
│ │ └── Contents.json
├── ViewController.m
├── Base.lproj
│ └── Main.storyboard
├── RFRateMeDemo-Info.plist
└── AppDelegate.m
├── RFRateMe
├── RFRateMe.h
├── UIAlertView+NSCookbook.h
├── UIAlertView+NSCookbook.m
└── RFRateMe.m
├── RFRateMe.podspec
├── LICENSE
├── RFRateMeDemo-Info.plist
└── README.md
/RFRateMeDemoTests/en.lproj/InfoPlist.strings:
--------------------------------------------------------------------------------
1 | /* Localized versions of Info.plist keys */
2 |
3 |
--------------------------------------------------------------------------------
/RFRateMeDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/RFRateMeDemo.xcodeproj/project.xcworkspace/xcuserdata/Funk.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rfunk82/RFRateMe/HEAD/RFRateMeDemo.xcodeproj/project.xcworkspace/xcuserdata/Funk.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/RFRateMeDemo.xcodeproj/project.xcworkspace/xcuserdata/rfunk.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rfunk82/RFRateMe/HEAD/RFRateMeDemo.xcodeproj/project.xcworkspace/xcuserdata/rfunk.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/RFRateMeDemo.xcodeproj/project.xcworkspace/xcuserdata/eugene_shcherbinock.xcuserdatad/UserInterfaceState.xcuserstate:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rfunk82/RFRateMe/HEAD/RFRateMeDemo.xcodeproj/project.xcworkspace/xcuserdata/eugene_shcherbinock.xcuserdatad/UserInterfaceState.xcuserstate
--------------------------------------------------------------------------------
/RFRateMeDemo/ViewController.h:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.h
3 | // RFRateMeDemo
4 | //
5 | // Created by Ricardo Funk on 1/2/14.
6 | // Copyright (c) 2014 Ricardo Funk. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface ViewController : UIViewController
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/RFRateMeDemo/AppDelegate.h:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.h
3 | // RFRateMeDemo
4 | //
5 | // Created by Ricardo Funk on 1/2/14.
6 | // Copyright (c) 2014 Ricardo Funk. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface AppDelegate : UIResponder
12 |
13 | @property (strong, nonatomic) UIWindow *window;
14 |
15 | @end
16 |
--------------------------------------------------------------------------------
/RFRateMe/RFRateMe.h:
--------------------------------------------------------------------------------
1 | //
2 | // RFRateMe.h
3 | // RFRateMeDemo
4 | //
5 | // Created by Ricardo Funk on 1/2/14.
6 | // Copyright (c) 2014 Ricardo Funk. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface RFRateMe : NSObject
12 |
13 | +(void)showRateAlert;
14 | +(void)showRateAlertAfterTimesOpened:(int)times;
15 | +(void)showRateAlertAfterDays:(int)days;
16 |
17 | @end
18 |
--------------------------------------------------------------------------------
/RFRateMeDemo/main.m:
--------------------------------------------------------------------------------
1 | //
2 | // main.m
3 | // RFRateMeDemo
4 | //
5 | // Created by Ricardo Funk on 1/2/14.
6 | // Copyright (c) 2014 Ricardo Funk. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | #import "AppDelegate.h"
12 |
13 | int main(int argc, char * argv[])
14 | {
15 | @autoreleasepool {
16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/RFRateMeDemo/RFRateMeDemo-Prefix.pch:
--------------------------------------------------------------------------------
1 | //
2 | // Prefix header
3 | //
4 | // The contents of this file are implicitly included at the beginning of every source file.
5 | //
6 |
7 | #import
8 |
9 | #ifndef __IPHONE_5_0
10 | #warning "This project uses features only available in iOS SDK 5.0 and later."
11 | #endif
12 |
13 | #ifdef __OBJC__
14 | #import
15 | #import
16 | #endif
17 |
--------------------------------------------------------------------------------
/RFRateMeDemo.xcodeproj/xcuserdata/eugene_shcherbinock.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | RFRateMeDemo.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/RFRateMeDemo/Images.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "29x29",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "40x40",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "60x60",
16 | "scale" : "2x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
--------------------------------------------------------------------------------
/RFRateMeDemo/Images.xcassets/LaunchImage.launchimage/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "orientation" : "portrait",
5 | "idiom" : "iphone",
6 | "extent" : "full-screen",
7 | "minimum-system-version" : "7.0",
8 | "scale" : "2x"
9 | },
10 | {
11 | "orientation" : "portrait",
12 | "idiom" : "iphone",
13 | "subtype" : "retina4",
14 | "extent" : "full-screen",
15 | "minimum-system-version" : "7.0",
16 | "scale" : "2x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
--------------------------------------------------------------------------------
/RFRateMe.podspec:
--------------------------------------------------------------------------------
1 | Pod::Spec.new do |s|
2 | s.name = "RFRateMe"
3 | s.version = "1.0.1"
4 | s.summary = "Easily set up a rate me prompt that shows up after a specific number of times or when you directly call it."
5 | s.homepage = "https://github.com/rfunk82/RFRateMe"
6 | s.screenshots = "http://i.imgur.com/BYbE6YK.png"
7 | s.license = 'MIT'
8 | s.author = { "Ricardo Funk" => "argentoenusa@hotmail.com" }
9 | s.source = { :git => "https://github.com/rfunk82/RFRateMe.git", :tag => '1.0.1' }
10 | s.platform = :ios, '7.0'
11 | s.source_files = 'RFRateMe/*.{h,m}'
12 | s.frameworks = 'UIKit'
13 | s.requires_arc = true
14 | end
15 |
--------------------------------------------------------------------------------
/RFRateMeDemo/ViewController.m:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.m
3 | // RFRateMeDemo
4 | //
5 | // Created by Ricardo Funk on 1/2/14.
6 | // Copyright (c) 2014 Ricardo Funk. All rights reserved.
7 | //
8 |
9 | #import "ViewController.h"
10 | #import "RFRateMe.h"
11 |
12 | @interface ViewController ()
13 |
14 | @end
15 |
16 | @implementation ViewController
17 |
18 | - (void)viewDidLoad
19 | {
20 | [super viewDidLoad];
21 | // Do any additional setup after loading the view, typically from a nib.
22 |
23 | }
24 |
25 | - (void)didReceiveMemoryWarning
26 | {
27 | [super didReceiveMemoryWarning];
28 | // Dispose of any resources that can be recreated.
29 | }
30 |
31 | @end
32 |
--------------------------------------------------------------------------------
/RFRateMeDemo.xcodeproj/xcuserdata/Funk.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | RFRateMeDemo.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | C74B24821876161900C7DF54
16 |
17 | primary
18 |
19 |
20 | C74B24A31876161900C7DF54
21 |
22 | primary
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/RFRateMeDemo.xcodeproj/xcuserdata/rfunk.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | RFRateMeDemo.xcscheme
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | C74B24821876161900C7DF54
16 |
17 | primary
18 |
19 |
20 | C74B24A31876161900C7DF54
21 |
22 | primary
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/RFRateMeDemoTests/RFRateMeDemoTests-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | ${EXECUTABLE_NAME}
9 | CFBundleIdentifier
10 | Ricardo-Funk.${PRODUCT_NAME:rfc1034identifier}
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundlePackageType
14 | BNDL
15 | CFBundleShortVersionString
16 | 1.0
17 | CFBundleSignature
18 | ????
19 | CFBundleVersion
20 | 1
21 |
22 |
23 |
--------------------------------------------------------------------------------
/RFRateMeDemoTests/RFRateMeDemoTests.m:
--------------------------------------------------------------------------------
1 | //
2 | // RFRateMeDemoTests.m
3 | // RFRateMeDemoTests
4 | //
5 | // Created by Ricardo Funk on 1/2/14.
6 | // Copyright (c) 2014 Ricardo Funk. All rights reserved.
7 | //
8 |
9 | #import
10 |
11 | @interface RFRateMeDemoTests : XCTestCase
12 |
13 | @end
14 |
15 | @implementation RFRateMeDemoTests
16 |
17 | - (void)setUp
18 | {
19 | [super setUp];
20 | // Put setup code here. This method is called before the invocation of each test method in the class.
21 | }
22 |
23 | - (void)tearDown
24 | {
25 | // Put teardown code here. This method is called after the invocation of each test method in the class.
26 | [super tearDown];
27 | }
28 |
29 | - (void)testExample
30 | {
31 | XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__);
32 | }
33 |
34 | @end
35 |
--------------------------------------------------------------------------------
/RFRateMeDemo.xcodeproj/xcuserdata/eugene_shcherbinock.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
8 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2014 RFRateMe (http://www.ideveloperblog.com/) Ricardo Funk @rfunk82
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is
8 | furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in
11 | all copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
20 |
--------------------------------------------------------------------------------
/RFRateMeDemo-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleDisplayName
8 | ${PRODUCT_NAME}
9 | CFBundleExecutable
10 | ${EXECUTABLE_NAME}
11 | CFBundleIdentifier
12 | Ricardo-Funk.${PRODUCT_NAME:rfc1034identifier}
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | ${PRODUCT_NAME}
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | 1.0
21 | CFBundleSignature
22 | ????
23 | CFBundleVersion
24 | 1.0
25 | LSRequiresIPhoneOS
26 |
27 | UIMainStoryboardFile
28 | Main
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationPortrait
36 | UIInterfaceOrientationLandscapeLeft
37 | UIInterfaceOrientationLandscapeRight
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/RFRateMe/UIAlertView+NSCookbook.h:
--------------------------------------------------------------------------------
1 | //
2 | // UIAlertView+NSCookbook.h
3 | // SimpleAlertViewSampleApp
4 | //
5 | // Copyright (c) 2013 NSCookbook. All rights reserved.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files (the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions:
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 | #import
26 |
27 | @interface UIAlertView (NSCookbook)
28 |
29 | - (void)showWithCompletion:(void(^)(UIAlertView *alertView, NSInteger buttonIndex))completion;
30 |
31 | @end
32 |
--------------------------------------------------------------------------------
/RFRateMeDemo.xcodeproj/xcuserdata/Funk.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist:
--------------------------------------------------------------------------------
1 |
2 |
5 |
6 |
8 |
20 |
21 |
22 |
24 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/RFRateMeDemo/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/RFRateMeDemo.xcodeproj/project.xcworkspace/xcshareddata/RFRateMeDemo.xccheckout:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDESourceControlProjectFavoriteDictionaryKey
6 |
7 | IDESourceControlProjectIdentifier
8 | 5DC32C4E-B725-4477-9176-682FC3E63BEE
9 | IDESourceControlProjectName
10 | RFRateMeDemo
11 | IDESourceControlProjectOriginsDictionary
12 |
13 | 6BE27D9E-746E-4341-9BCB-7E0E6E116EF1
14 | https://github.com/rfunk82/RFRateMe.git
15 |
16 | IDESourceControlProjectPath
17 | RFRateMeDemo.xcodeproj/project.xcworkspace
18 | IDESourceControlProjectRelativeInstallPathDictionary
19 |
20 | 6BE27D9E-746E-4341-9BCB-7E0E6E116EF1
21 | ../..
22 |
23 | IDESourceControlProjectURL
24 | https://github.com/rfunk82/RFRateMe.git
25 | IDESourceControlProjectVersion
26 | 110
27 | IDESourceControlProjectWCCIdentifier
28 | 6BE27D9E-746E-4341-9BCB-7E0E6E116EF1
29 | IDESourceControlProjectWCConfigurations
30 |
31 |
32 | IDESourceControlRepositoryExtensionIdentifierKey
33 | public.vcs.git
34 | IDESourceControlWCCIdentifierKey
35 | 6BE27D9E-746E-4341-9BCB-7E0E6E116EF1
36 | IDESourceControlWCCName
37 | RFRateMe
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/RFRateMeDemo/RFRateMeDemo-Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | RFRateAlertSettings
6 |
7 | RFRateAlertButtons
8 |
9 | RFCancelButtonTitle
10 | No, thanks
11 | RFLaterButtonTitle
12 | Remind me later
13 | RFRateButtonTitle
14 | Rate now
15 |
16 | RFNumberOfDaysUntilShowing
17 | 3
18 | RFAppStoreApplicationURL
19 | https://your.app.url
20 | RFRateAlertMessage
21 | If you like $(PRODUCT_NAME), please rate it
22 | RFRateAlertTitle
23 | $(PRODUCT_NAME)
24 |
25 | CFBundleDevelopmentRegion
26 | en
27 | CFBundleDisplayName
28 | ${PRODUCT_NAME}
29 | CFBundleExecutable
30 | ${EXECUTABLE_NAME}
31 | CFBundleIdentifier
32 | Ricardo-Funk.${PRODUCT_NAME:rfc1034identifier}
33 | CFBundleInfoDictionaryVersion
34 | 6.0
35 | CFBundleName
36 | ${PRODUCT_NAME}
37 | CFBundlePackageType
38 | APPL
39 | CFBundleShortVersionString
40 | 1.0
41 | CFBundleSignature
42 | ????
43 | CFBundleVersion
44 | 1.0
45 | LSRequiresIPhoneOS
46 |
47 | UIMainStoryboardFile
48 | Main
49 | UIRequiredDeviceCapabilities
50 |
51 | armv7
52 |
53 | UISupportedInterfaceOrientations
54 |
55 | UIInterfaceOrientationPortrait
56 | UIInterfaceOrientationLandscapeLeft
57 | UIInterfaceOrientationLandscapeRight
58 |
59 |
60 |
61 |
--------------------------------------------------------------------------------
/RFRateMeDemo/AppDelegate.m:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.m
3 | // RFRateMeDemo
4 | //
5 | // Created by Ricardo Funk on 1/2/14.
6 | // Copyright (c) 2014 Ricardo Funk. All rights reserved.
7 | //
8 |
9 | #import "AppDelegate.h"
10 | #import "RFRateMe.h"
11 |
12 | @implementation AppDelegate
13 |
14 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
15 | {
16 |
17 | //Option 1 (Show the alert)
18 | [RFRateMe showRateAlert];
19 |
20 | // Option 2 (Show the alert after X amount of times you opened the app)
21 | [RFRateMe showRateAlertAfterTimesOpened:3];
22 |
23 | // Option 3 (Show the alert after X amount of days you opened the app for the first time)
24 | [RFRateMe showRateAlertAfterDays:7];
25 |
26 | return YES;
27 | }
28 |
29 | - (void)applicationWillResignActive:(UIApplication *)application
30 | {
31 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
32 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
33 | }
34 |
35 | - (void)applicationDidEnterBackground:(UIApplication *)application
36 | {
37 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
38 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
39 | }
40 |
41 | - (void)applicationWillEnterForeground:(UIApplication *)application
42 | {
43 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
44 | }
45 |
46 | - (void)applicationDidBecomeActive:(UIApplication *)application
47 | {
48 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
49 | }
50 |
51 | - (void)applicationWillTerminate:(UIApplication *)application
52 | {
53 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
54 | }
55 |
56 | @end
57 |
--------------------------------------------------------------------------------
/RFRateMe/UIAlertView+NSCookbook.m:
--------------------------------------------------------------------------------
1 | //
2 | // UIAlertView+NSCookbook.m
3 | // SimpleAlertViewSampleApp
4 | //
5 | // Copyright (c) 2013 NSCookbook. All rights reserved.
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy
8 | // of this software and associated documentation files (the "Software"), to deal
9 | // in the Software without restriction, including without limitation the rights
10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 | // copies of the Software, and to permit persons to whom the Software is
12 | // furnished to do so, subject to the following conditions:
13 | //
14 | // The above copyright notice and this permission notice shall be included in
15 | // all copies or substantial portions of the Software.
16 | //
17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 | // THE SOFTWARE.
24 |
25 | #import
26 | #import "UIAlertView+NSCookbook.h"
27 |
28 | @interface NSCBAlertWrapper : NSObject
29 |
30 | @property (copy) void(^completionBlock)(UIAlertView *alertView, NSInteger buttonIndex);
31 |
32 | @end
33 |
34 | @implementation NSCBAlertWrapper
35 |
36 | #pragma mark - UIAlertViewDelegate
37 |
38 | // Called when a button is clicked. The view will be automatically dismissed after this call returns
39 | - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex
40 | {
41 | if (self.completionBlock)
42 | self.completionBlock(alertView, buttonIndex);
43 | }
44 |
45 | // Called when we cancel a view (eg. the user clicks the Home button). This is not called when the user clicks the cancel button.
46 | // If not defined in the delegate, we simulate a click in the cancel button
47 | - (void)alertViewCancel:(UIAlertView *)alertView
48 | {
49 | // Just simulate a cancel button click
50 | if (self.completionBlock)
51 | self.completionBlock(alertView, alertView.cancelButtonIndex);
52 | }
53 |
54 | @end
55 |
56 |
57 | static const char kNSCBAlertWrapper;
58 | @implementation UIAlertView (NSCookbook)
59 |
60 | #pragma mark - Class Public
61 |
62 | - (void)showWithCompletion:(void(^)(UIAlertView *alertView, NSInteger buttonIndex))completion
63 | {
64 | NSCBAlertWrapper *alertWrapper = [[NSCBAlertWrapper alloc] init];
65 | alertWrapper.completionBlock = completion;
66 | self.delegate = alertWrapper;
67 |
68 | // Set the wrapper as an associated object
69 | objc_setAssociatedObject(self, &kNSCBAlertWrapper, alertWrapper, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
70 |
71 | // Show the alert as normal
72 | [self show];
73 | }
74 |
75 | @end
76 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | RFRateMe
2 | ========
3 |
4 | RFRateMe will help you promote your iPhone/iPad app without irritating your users. It's very simple to install, use and configure (If you need to change the default behavior).
5 |
6 |
7 | 
8 |
9 | How To Get Started
10 | ==================
11 |
12 | 1. `#import "RFRateMe.h"`
13 | 2. Call the class method whenever you want to show the alert:
14 |
15 | `[RFRateMe showRateAlert];`
16 |
17 | or you can also show the alert after X times of using the app by simply calling the following method in your appDelegate didFinishLaunchingWithOptions:
18 |
19 | +(void)showRateAlertAfterTimesOpened:(int)times
20 |
21 | [RFRateMe showRateAlertAfterTimesOpened:3];
22 |
23 | or you can also show the alert after X days of using the app by simply calling the following method in your appDelegate didFinishLaunchingWithOptions:
24 |
25 | +(void)showRateAlertAfterDays:(int)days;
26 |
27 | [RFRateMe showRateAlertAfterDays:7];
28 |
29 |
30 | Features
31 | ========
32 |
33 | - If the user chooses "Rate now" or "Never ask me again" alert won't be shown again.
34 | - If the user chooses "Remind me later" they will get the alert after 3 (Default) days.
35 |
36 | Configuration
37 | =============
38 |
39 | You should add the following lines into your application `*.plist` file:
40 |
41 | ```
42 | RFRateAlertSettings
43 |
44 | RFRateAlertButtons
45 |
46 | RFCancelButtonTitle
47 | No, thanks
48 |
49 | RFLaterButtonTitle
50 | Remind me later
51 |
52 | RFRateButtonTitle
53 | Rate now
54 |
55 |
56 | RFNumberOfDaysUntilShowing
57 | 3
58 |
59 | RFAppStoreApplicationURL
60 | https://your.app.url
61 |
62 | RFRateAlertMessage
63 | If you like $(PRODUCT_NAME), please rate it
64 |
65 | RFRateAlertTitle
66 | $(PRODUCT_NAME)
67 |
68 | ```
69 |
70 | 
71 |
72 | Podfile
73 | =======
74 |
75 | ```
76 | pod 'RFRateMe'
77 | ```
78 |
79 | Created By
80 | ==========
81 |
82 | Ricardo Funk ([@rfunk82](http://www.twitter.com/rfunk82))
83 |
84 | UIAlertView+NSCookbook Provided by NSCookbook
85 |
86 | License
87 | =======
88 |
89 | > This is licensed under an MIT License:
90 |
91 | > Copyright (c) 2013 Ricardo Funk
92 |
93 | > Permission is hereby granted, free of charge, to any person obtaining a
94 | copy of this software and associated documentation files (the "Software"),
95 | to deal in the Software without restriction, including without limitation
96 | the rights to use, copy, modify, merge, publish, distribute, sublicense,
97 | and/or sell copies of the Software, and to permit persons to whom the
98 | Software is furnished to do so, subject to the following conditions:
99 |
100 | > The above copyright notice and this permission notice shall be included in
101 | all copies or substantial portions of the Software.
102 |
103 | > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
104 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
105 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
106 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
107 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
108 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
109 | DEALINGS IN THE SOFTWARE.
110 |
111 |
--------------------------------------------------------------------------------
/RFRateMeDemo.xcodeproj/xcuserdata/Funk.xcuserdatad/xcschemes/RFRateMeDemo.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
33 |
39 |
40 |
41 |
42 |
43 |
49 |
50 |
51 |
52 |
61 |
62 |
68 |
69 |
70 |
71 |
72 |
73 |
79 |
80 |
86 |
87 |
88 |
89 |
91 |
92 |
95 |
96 |
97 |
--------------------------------------------------------------------------------
/RFRateMeDemo.xcodeproj/xcuserdata/rfunk.xcuserdatad/xcschemes/RFRateMeDemo.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
33 |
39 |
40 |
41 |
42 |
43 |
49 |
50 |
51 |
52 |
61 |
62 |
68 |
69 |
70 |
71 |
72 |
73 |
79 |
80 |
86 |
87 |
88 |
89 |
91 |
92 |
95 |
96 |
97 |
--------------------------------------------------------------------------------
/RFRateMe/RFRateMe.m:
--------------------------------------------------------------------------------
1 | //
2 | // RFRateMe.m
3 | // RFRateMeDemo
4 | //
5 | // Created by Ricardo Funk on 1/2/14.
6 | // Copyright (c) 2014 Ricardo Funk. All rights reserved.
7 | //
8 |
9 | #import "RFRateMe.h"
10 | #import "UIAlertView+NSCookbook.h"
11 |
12 | #pragma mark - Define dictionary keys
13 |
14 | #define settingsKey @"RFRateAlertSettings"
15 | #define titleKey @"RFRateAlertTitle"
16 | #define messageKey @"RFRateAlertMessage"
17 | #define appStoreUrlKey @"RFAppStoreApplicationURL"
18 | #define numberOfDaysKey @"RFNumberOfDaysUntilShowing"
19 | #define buttonsKey @"RFRateAlertButtons"
20 | #define cancelButtonKey @"RFCancelButtonTitle"
21 | #define laterButtonKey @"RFLaterButtonTitle"
22 | #define rateButtonKey @"RFRateButtonTitle"
23 |
24 | #pragma mark - Implementation
25 |
26 | @implementation RFRateMe
27 |
28 | static NSDictionary *settingsDictionary;
29 |
30 | +(void)showRateAlert {
31 | settingsDictionary = [self getSettingsDictionary];
32 |
33 | //If rate was completed, we just return if True
34 | BOOL rateCompleted = [[NSUserDefaults standardUserDefaults] boolForKey:@"RFRateCompleted"];
35 | if (rateCompleted) return;
36 |
37 | //Check if the user asked not to be prompted again for 3 days (remind me later)
38 | BOOL remindMeLater = [[NSUserDefaults standardUserDefaults] boolForKey:@"RFRemindMeLater"];
39 |
40 | if (remindMeLater) {
41 |
42 | NSDateFormatter *DateFormatter=[[NSDateFormatter alloc] init];
43 | [DateFormatter setDateFormat:@"yyyy-MM-dd"];
44 |
45 | NSString *start = [[NSUserDefaults standardUserDefaults] objectForKey:@"RFStartDate"];
46 | NSString *end = [DateFormatter stringFromDate:[NSDate date]];
47 |
48 | NSDateFormatter *f = [[NSDateFormatter alloc] init];
49 | [f setDateFormat:@"yyyy-MM-dd"];
50 | NSDate *startDate = [f dateFromString:start];
51 | NSDate *endDate = [f dateFromString:end];
52 |
53 | NSCalendar *gregorianCalendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];
54 | NSDateComponents *components = [gregorianCalendar components:NSDayCalendarUnit
55 | fromDate:startDate
56 | toDate:endDate
57 | options:0];
58 |
59 | long numberOfDays = [settingsDictionary objectForKey:numberOfDaysKey] ? (long) [settingsDictionary objectForKey:numberOfDaysKey] : (long) 3;
60 | if ((long)[components day] <= numberOfDays) return;
61 |
62 | }
63 |
64 | //Show rate alert
65 |
66 | NSString *title = [settingsDictionary objectForKey:titleKey];
67 | NSString *message = [settingsDictionary objectForKey:messageKey];
68 | NSDictionary *buttons = [settingsDictionary objectForKey:buttonsKey];
69 |
70 | UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:title
71 | message:message
72 | delegate:nil
73 | cancelButtonTitle:[buttons objectForKey:cancelButtonKey]
74 | otherButtonTitles:[buttons objectForKey:laterButtonKey], [buttons objectForKey:rateButtonKey], nil];
75 |
76 | [alertView showWithCompletion:^(UIAlertView *alertView, NSInteger buttonIndex) {
77 |
78 | switch (buttonIndex) {
79 | case 0:
80 |
81 | NSLog(@"No, thanks");
82 | [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"RFRateCompleted"];
83 | [[NSUserDefaults standardUserDefaults] synchronize];
84 |
85 | break;
86 | case 1:
87 |
88 | NSLog(@"Rate it now");
89 | [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"RFRateCompleted"];
90 | [[NSUserDefaults standardUserDefaults] synchronize];
91 | [[UIApplication sharedApplication] openURL:[NSURL URLWithString:[settingsDictionary objectForKey:appStoreUrlKey]]];
92 |
93 | break;
94 | case 2:
95 |
96 | NSLog(@"Remind me later");
97 | NSDateFormatter *dateFormatter=[[NSDateFormatter alloc] init];
98 | [dateFormatter setDateFormat:@"yyyy-MM-dd"];
99 | NSDate *now = [NSDate date];
100 | [[NSUserDefaults standardUserDefaults] setObject:[dateFormatter stringFromDate:now] forKey:@"RFStartDate"];
101 | [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"RFRemindMeLater"];
102 | [[NSUserDefaults standardUserDefaults] synchronize];
103 |
104 | break;
105 | }
106 | }];
107 | }
108 |
109 | +(void)showRateAlertAfterTimesOpened:(int)times {
110 | //Thanks @kylnew for feedback and idea!
111 |
112 | BOOL rateCompleted = [[NSUserDefaults standardUserDefaults] boolForKey:@"RFRateCompleted"];
113 | if (rateCompleted) return;
114 |
115 | NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
116 | NSInteger timesOpened = [defaults integerForKey:@"timesOpened"];
117 | [defaults setInteger:timesOpened+1 forKey:@"timesOpened"];
118 | [defaults synchronize];
119 | NSLog(@"App has been opened %ld times", (long)[defaults integerForKey:@"timesOpened"]);
120 | if([defaults integerForKey:@"timesOpened"] >= times){
121 | [RFRateMe showRateAlert];
122 | }
123 |
124 |
125 | }
126 |
127 |
128 | +(void)showRateAlertAfterDays:(int)times {
129 |
130 | BOOL rateCompleted = [[NSUserDefaults standardUserDefaults] boolForKey:@"RFRateCompleted"];
131 | if (rateCompleted) return;
132 |
133 | BOOL showAfterXdays = [[NSUserDefaults standardUserDefaults] boolForKey:@"RFShowAfterXDays"];
134 |
135 | if (!showAfterXdays) {
136 | NSDateFormatter *dateFormatter=[[NSDateFormatter alloc] init];
137 | [dateFormatter setDateFormat:@"yyyy-MM-dd"];
138 | NSDate *now = [NSDate date];
139 | [[NSUserDefaults standardUserDefaults] setObject:[dateFormatter stringFromDate:now] forKey:@"RFGeneralStartDate"];
140 | [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"RFShowAfterXDays"];
141 | [[NSUserDefaults standardUserDefaults] synchronize];
142 | }
143 |
144 | NSDateFormatter *DateFormatter=[[NSDateFormatter alloc] init];
145 | [DateFormatter setDateFormat:@"yyyy-MM-dd"];
146 |
147 | NSString *start = [[NSUserDefaults standardUserDefaults] objectForKey:@"RFGeneralStartDate"];
148 | NSString *end = [DateFormatter stringFromDate:[NSDate date]];
149 |
150 | NSDateFormatter *f = [[NSDateFormatter alloc] init];
151 | [f setDateFormat:@"yyyy-MM-dd"];
152 | NSDate *startDate = [f dateFromString:start];
153 | NSDate *endDate = [f dateFromString:end];
154 |
155 | NSCalendar *gregorianCalendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];
156 | NSDateComponents *components = [gregorianCalendar components:NSDayCalendarUnit
157 | fromDate:startDate
158 | toDate:endDate
159 | options:0];
160 |
161 | if ((long)[components day] <= times) return;
162 |
163 |
164 | }
165 |
166 | #pragma mark - Settings Dictionary initializer
167 |
168 | +(NSDictionary *)getSettingsDictionary {
169 | if (settingsDictionary) {
170 | return settingsDictionary;
171 | }
172 | return [[[NSBundle mainBundle] infoDictionary] objectForKey:settingsKey];
173 | }
174 |
175 | @end
176 |
--------------------------------------------------------------------------------
/RFRateMeDemo.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 55DCCE061FE2CCDA00274C06 /* RFRateMeDemo-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 55DCCE051FE2CCD900274C06 /* RFRateMeDemo-Info.plist */; };
11 | B6151BD318C3FBFD001E9725 /* RFRateMe.m in Sources */ = {isa = PBXBuildFile; fileRef = B6151BD018C3FBFD001E9725 /* RFRateMe.m */; };
12 | B6151BD418C3FBFD001E9725 /* UIAlertView+NSCookbook.m in Sources */ = {isa = PBXBuildFile; fileRef = B6151BD218C3FBFD001E9725 /* UIAlertView+NSCookbook.m */; };
13 | C74B24871876161900C7DF54 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C74B24861876161900C7DF54 /* Foundation.framework */; };
14 | C74B24891876161900C7DF54 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C74B24881876161900C7DF54 /* CoreGraphics.framework */; };
15 | C74B248B1876161900C7DF54 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C74B248A1876161900C7DF54 /* UIKit.framework */; };
16 | C74B24931876161900C7DF54 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = C74B24921876161900C7DF54 /* main.m */; };
17 | C74B24971876161900C7DF54 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = C74B24961876161900C7DF54 /* AppDelegate.m */; };
18 | C74B249A1876161900C7DF54 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = C74B24981876161900C7DF54 /* Main.storyboard */; };
19 | C74B249D1876161900C7DF54 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = C74B249C1876161900C7DF54 /* ViewController.m */; };
20 | C74B249F1876161900C7DF54 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = C74B249E1876161900C7DF54 /* Images.xcassets */; };
21 | C74B24A61876161900C7DF54 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C74B24A51876161900C7DF54 /* XCTest.framework */; };
22 | C74B24A71876161900C7DF54 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C74B24861876161900C7DF54 /* Foundation.framework */; };
23 | C74B24A81876161900C7DF54 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C74B248A1876161900C7DF54 /* UIKit.framework */; };
24 | C74B24B01876161900C7DF54 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = C74B24AE1876161900C7DF54 /* InfoPlist.strings */; };
25 | C74B24B21876161900C7DF54 /* RFRateMeDemoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = C74B24B11876161900C7DF54 /* RFRateMeDemoTests.m */; };
26 | /* End PBXBuildFile section */
27 |
28 | /* Begin PBXContainerItemProxy section */
29 | C74B24A91876161900C7DF54 /* PBXContainerItemProxy */ = {
30 | isa = PBXContainerItemProxy;
31 | containerPortal = C74B247B1876161900C7DF54 /* Project object */;
32 | proxyType = 1;
33 | remoteGlobalIDString = C74B24821876161900C7DF54;
34 | remoteInfo = RFRateMeDemo;
35 | };
36 | /* End PBXContainerItemProxy section */
37 |
38 | /* Begin PBXFileReference section */
39 | 55DCCE051FE2CCD900274C06 /* RFRateMeDemo-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "RFRateMeDemo-Info.plist"; sourceTree = ""; };
40 | B6151BCF18C3FBFD001E9725 /* RFRateMe.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = RFRateMe.h; path = RFRateMe/RFRateMe.h; sourceTree = ""; };
41 | B6151BD018C3FBFD001E9725 /* RFRateMe.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = RFRateMe.m; path = RFRateMe/RFRateMe.m; sourceTree = ""; };
42 | B6151BD118C3FBFD001E9725 /* UIAlertView+NSCookbook.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "UIAlertView+NSCookbook.h"; path = "RFRateMe/UIAlertView+NSCookbook.h"; sourceTree = ""; };
43 | B6151BD218C3FBFD001E9725 /* UIAlertView+NSCookbook.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "UIAlertView+NSCookbook.m"; path = "RFRateMe/UIAlertView+NSCookbook.m"; sourceTree = ""; };
44 | C74B24831876161900C7DF54 /* RFRateMeDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = RFRateMeDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
45 | C74B24861876161900C7DF54 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
46 | C74B24881876161900C7DF54 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
47 | C74B248A1876161900C7DF54 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
48 | C74B24921876161900C7DF54 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
49 | C74B24941876161900C7DF54 /* RFRateMeDemo-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "RFRateMeDemo-Prefix.pch"; sourceTree = ""; };
50 | C74B24951876161900C7DF54 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
51 | C74B24961876161900C7DF54 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
52 | C74B24991876161900C7DF54 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
53 | C74B249B1876161900C7DF54 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; };
54 | C74B249C1876161900C7DF54 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; };
55 | C74B249E1876161900C7DF54 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; };
56 | C74B24A41876161900C7DF54 /* RFRateMeDemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RFRateMeDemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
57 | C74B24A51876161900C7DF54 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; };
58 | C74B24AD1876161900C7DF54 /* RFRateMeDemoTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "RFRateMeDemoTests-Info.plist"; sourceTree = ""; };
59 | C74B24AF1876161900C7DF54 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; };
60 | C74B24B11876161900C7DF54 /* RFRateMeDemoTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RFRateMeDemoTests.m; sourceTree = ""; };
61 | /* End PBXFileReference section */
62 |
63 | /* Begin PBXFrameworksBuildPhase section */
64 | C74B24801876161900C7DF54 /* Frameworks */ = {
65 | isa = PBXFrameworksBuildPhase;
66 | buildActionMask = 2147483647;
67 | files = (
68 | C74B24891876161900C7DF54 /* CoreGraphics.framework in Frameworks */,
69 | C74B248B1876161900C7DF54 /* UIKit.framework in Frameworks */,
70 | C74B24871876161900C7DF54 /* Foundation.framework in Frameworks */,
71 | );
72 | runOnlyForDeploymentPostprocessing = 0;
73 | };
74 | C74B24A11876161900C7DF54 /* Frameworks */ = {
75 | isa = PBXFrameworksBuildPhase;
76 | buildActionMask = 2147483647;
77 | files = (
78 | C74B24A61876161900C7DF54 /* XCTest.framework in Frameworks */,
79 | C74B24A81876161900C7DF54 /* UIKit.framework in Frameworks */,
80 | C74B24A71876161900C7DF54 /* Foundation.framework in Frameworks */,
81 | );
82 | runOnlyForDeploymentPostprocessing = 0;
83 | };
84 | /* End PBXFrameworksBuildPhase section */
85 |
86 | /* Begin PBXGroup section */
87 | C74B247A1876161900C7DF54 = {
88 | isa = PBXGroup;
89 | children = (
90 | B6151BCF18C3FBFD001E9725 /* RFRateMe.h */,
91 | B6151BD018C3FBFD001E9725 /* RFRateMe.m */,
92 | B6151BD118C3FBFD001E9725 /* UIAlertView+NSCookbook.h */,
93 | B6151BD218C3FBFD001E9725 /* UIAlertView+NSCookbook.m */,
94 | C74B248C1876161900C7DF54 /* RFRateMeDemo */,
95 | C74B24AB1876161900C7DF54 /* RFRateMeDemoTests */,
96 | C74B24851876161900C7DF54 /* Frameworks */,
97 | C74B24841876161900C7DF54 /* Products */,
98 | );
99 | sourceTree = "";
100 | };
101 | C74B24841876161900C7DF54 /* Products */ = {
102 | isa = PBXGroup;
103 | children = (
104 | C74B24831876161900C7DF54 /* RFRateMeDemo.app */,
105 | C74B24A41876161900C7DF54 /* RFRateMeDemoTests.xctest */,
106 | );
107 | name = Products;
108 | sourceTree = "";
109 | };
110 | C74B24851876161900C7DF54 /* Frameworks */ = {
111 | isa = PBXGroup;
112 | children = (
113 | C74B24861876161900C7DF54 /* Foundation.framework */,
114 | C74B24881876161900C7DF54 /* CoreGraphics.framework */,
115 | C74B248A1876161900C7DF54 /* UIKit.framework */,
116 | C74B24A51876161900C7DF54 /* XCTest.framework */,
117 | );
118 | name = Frameworks;
119 | sourceTree = "";
120 | };
121 | C74B248C1876161900C7DF54 /* RFRateMeDemo */ = {
122 | isa = PBXGroup;
123 | children = (
124 | C74B24951876161900C7DF54 /* AppDelegate.h */,
125 | C74B24961876161900C7DF54 /* AppDelegate.m */,
126 | C74B24981876161900C7DF54 /* Main.storyboard */,
127 | C74B249B1876161900C7DF54 /* ViewController.h */,
128 | C74B249C1876161900C7DF54 /* ViewController.m */,
129 | C74B249E1876161900C7DF54 /* Images.xcassets */,
130 | C74B248D1876161900C7DF54 /* Supporting Files */,
131 | );
132 | path = RFRateMeDemo;
133 | sourceTree = "";
134 | };
135 | C74B248D1876161900C7DF54 /* Supporting Files */ = {
136 | isa = PBXGroup;
137 | children = (
138 | 55DCCE051FE2CCD900274C06 /* RFRateMeDemo-Info.plist */,
139 | C74B24921876161900C7DF54 /* main.m */,
140 | C74B24941876161900C7DF54 /* RFRateMeDemo-Prefix.pch */,
141 | );
142 | name = "Supporting Files";
143 | sourceTree = "";
144 | };
145 | C74B24AB1876161900C7DF54 /* RFRateMeDemoTests */ = {
146 | isa = PBXGroup;
147 | children = (
148 | C74B24B11876161900C7DF54 /* RFRateMeDemoTests.m */,
149 | C74B24AC1876161900C7DF54 /* Supporting Files */,
150 | );
151 | path = RFRateMeDemoTests;
152 | sourceTree = "";
153 | };
154 | C74B24AC1876161900C7DF54 /* Supporting Files */ = {
155 | isa = PBXGroup;
156 | children = (
157 | C74B24AD1876161900C7DF54 /* RFRateMeDemoTests-Info.plist */,
158 | C74B24AE1876161900C7DF54 /* InfoPlist.strings */,
159 | );
160 | name = "Supporting Files";
161 | sourceTree = "";
162 | };
163 | /* End PBXGroup section */
164 |
165 | /* Begin PBXNativeTarget section */
166 | C74B24821876161900C7DF54 /* RFRateMeDemo */ = {
167 | isa = PBXNativeTarget;
168 | buildConfigurationList = C74B24B51876161900C7DF54 /* Build configuration list for PBXNativeTarget "RFRateMeDemo" */;
169 | buildPhases = (
170 | C74B247F1876161900C7DF54 /* Sources */,
171 | C74B24801876161900C7DF54 /* Frameworks */,
172 | C74B24811876161900C7DF54 /* Resources */,
173 | );
174 | buildRules = (
175 | );
176 | dependencies = (
177 | );
178 | name = RFRateMeDemo;
179 | productName = RFRateMeDemo;
180 | productReference = C74B24831876161900C7DF54 /* RFRateMeDemo.app */;
181 | productType = "com.apple.product-type.application";
182 | };
183 | C74B24A31876161900C7DF54 /* RFRateMeDemoTests */ = {
184 | isa = PBXNativeTarget;
185 | buildConfigurationList = C74B24B81876161900C7DF54 /* Build configuration list for PBXNativeTarget "RFRateMeDemoTests" */;
186 | buildPhases = (
187 | C74B24A01876161900C7DF54 /* Sources */,
188 | C74B24A11876161900C7DF54 /* Frameworks */,
189 | C74B24A21876161900C7DF54 /* Resources */,
190 | );
191 | buildRules = (
192 | );
193 | dependencies = (
194 | C74B24AA1876161900C7DF54 /* PBXTargetDependency */,
195 | );
196 | name = RFRateMeDemoTests;
197 | productName = RFRateMeDemoTests;
198 | productReference = C74B24A41876161900C7DF54 /* RFRateMeDemoTests.xctest */;
199 | productType = "com.apple.product-type.bundle.unit-test";
200 | };
201 | /* End PBXNativeTarget section */
202 |
203 | /* Begin PBXProject section */
204 | C74B247B1876161900C7DF54 /* Project object */ = {
205 | isa = PBXProject;
206 | attributes = {
207 | LastUpgradeCheck = 0500;
208 | ORGANIZATIONNAME = "Ricardo Funk";
209 | TargetAttributes = {
210 | C74B24A31876161900C7DF54 = {
211 | TestTargetID = C74B24821876161900C7DF54;
212 | };
213 | };
214 | };
215 | buildConfigurationList = C74B247E1876161900C7DF54 /* Build configuration list for PBXProject "RFRateMeDemo" */;
216 | compatibilityVersion = "Xcode 3.2";
217 | developmentRegion = English;
218 | hasScannedForEncodings = 0;
219 | knownRegions = (
220 | en,
221 | Base,
222 | );
223 | mainGroup = C74B247A1876161900C7DF54;
224 | productRefGroup = C74B24841876161900C7DF54 /* Products */;
225 | projectDirPath = "";
226 | projectRoot = "";
227 | targets = (
228 | C74B24821876161900C7DF54 /* RFRateMeDemo */,
229 | C74B24A31876161900C7DF54 /* RFRateMeDemoTests */,
230 | );
231 | };
232 | /* End PBXProject section */
233 |
234 | /* Begin PBXResourcesBuildPhase section */
235 | C74B24811876161900C7DF54 /* Resources */ = {
236 | isa = PBXResourcesBuildPhase;
237 | buildActionMask = 2147483647;
238 | files = (
239 | C74B249F1876161900C7DF54 /* Images.xcassets in Resources */,
240 | 55DCCE061FE2CCDA00274C06 /* RFRateMeDemo-Info.plist in Resources */,
241 | C74B249A1876161900C7DF54 /* Main.storyboard in Resources */,
242 | );
243 | runOnlyForDeploymentPostprocessing = 0;
244 | };
245 | C74B24A21876161900C7DF54 /* Resources */ = {
246 | isa = PBXResourcesBuildPhase;
247 | buildActionMask = 2147483647;
248 | files = (
249 | C74B24B01876161900C7DF54 /* InfoPlist.strings in Resources */,
250 | );
251 | runOnlyForDeploymentPostprocessing = 0;
252 | };
253 | /* End PBXResourcesBuildPhase section */
254 |
255 | /* Begin PBXSourcesBuildPhase section */
256 | C74B247F1876161900C7DF54 /* Sources */ = {
257 | isa = PBXSourcesBuildPhase;
258 | buildActionMask = 2147483647;
259 | files = (
260 | B6151BD418C3FBFD001E9725 /* UIAlertView+NSCookbook.m in Sources */,
261 | C74B249D1876161900C7DF54 /* ViewController.m in Sources */,
262 | C74B24971876161900C7DF54 /* AppDelegate.m in Sources */,
263 | B6151BD318C3FBFD001E9725 /* RFRateMe.m in Sources */,
264 | C74B24931876161900C7DF54 /* main.m in Sources */,
265 | );
266 | runOnlyForDeploymentPostprocessing = 0;
267 | };
268 | C74B24A01876161900C7DF54 /* Sources */ = {
269 | isa = PBXSourcesBuildPhase;
270 | buildActionMask = 2147483647;
271 | files = (
272 | C74B24B21876161900C7DF54 /* RFRateMeDemoTests.m in Sources */,
273 | );
274 | runOnlyForDeploymentPostprocessing = 0;
275 | };
276 | /* End PBXSourcesBuildPhase section */
277 |
278 | /* Begin PBXTargetDependency section */
279 | C74B24AA1876161900C7DF54 /* PBXTargetDependency */ = {
280 | isa = PBXTargetDependency;
281 | target = C74B24821876161900C7DF54 /* RFRateMeDemo */;
282 | targetProxy = C74B24A91876161900C7DF54 /* PBXContainerItemProxy */;
283 | };
284 | /* End PBXTargetDependency section */
285 |
286 | /* Begin PBXVariantGroup section */
287 | C74B24981876161900C7DF54 /* Main.storyboard */ = {
288 | isa = PBXVariantGroup;
289 | children = (
290 | C74B24991876161900C7DF54 /* Base */,
291 | );
292 | name = Main.storyboard;
293 | sourceTree = "";
294 | };
295 | C74B24AE1876161900C7DF54 /* InfoPlist.strings */ = {
296 | isa = PBXVariantGroup;
297 | children = (
298 | C74B24AF1876161900C7DF54 /* en */,
299 | );
300 | name = InfoPlist.strings;
301 | sourceTree = "";
302 | };
303 | /* End PBXVariantGroup section */
304 |
305 | /* Begin XCBuildConfiguration section */
306 | C74B24B31876161900C7DF54 /* Debug */ = {
307 | isa = XCBuildConfiguration;
308 | buildSettings = {
309 | ALWAYS_SEARCH_USER_PATHS = NO;
310 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
311 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
312 | CLANG_CXX_LIBRARY = "libc++";
313 | CLANG_ENABLE_MODULES = YES;
314 | CLANG_ENABLE_OBJC_ARC = YES;
315 | CLANG_WARN_BOOL_CONVERSION = YES;
316 | CLANG_WARN_CONSTANT_CONVERSION = YES;
317 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
318 | CLANG_WARN_EMPTY_BODY = YES;
319 | CLANG_WARN_ENUM_CONVERSION = YES;
320 | CLANG_WARN_INT_CONVERSION = YES;
321 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
322 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
323 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
324 | COPY_PHASE_STRIP = NO;
325 | GCC_C_LANGUAGE_STANDARD = gnu99;
326 | GCC_DYNAMIC_NO_PIC = NO;
327 | GCC_OPTIMIZATION_LEVEL = 0;
328 | GCC_PREPROCESSOR_DEFINITIONS = (
329 | "DEBUG=1",
330 | "$(inherited)",
331 | );
332 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
333 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
334 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
335 | GCC_WARN_UNDECLARED_SELECTOR = YES;
336 | GCC_WARN_UNINITIALIZED_AUTOS = YES;
337 | GCC_WARN_UNUSED_FUNCTION = YES;
338 | GCC_WARN_UNUSED_VARIABLE = YES;
339 | IPHONEOS_DEPLOYMENT_TARGET = 7.0;
340 | ONLY_ACTIVE_ARCH = YES;
341 | SDKROOT = iphoneos;
342 | };
343 | name = Debug;
344 | };
345 | C74B24B41876161900C7DF54 /* Release */ = {
346 | isa = XCBuildConfiguration;
347 | buildSettings = {
348 | ALWAYS_SEARCH_USER_PATHS = NO;
349 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
350 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
351 | CLANG_CXX_LIBRARY = "libc++";
352 | CLANG_ENABLE_MODULES = YES;
353 | CLANG_ENABLE_OBJC_ARC = YES;
354 | CLANG_WARN_BOOL_CONVERSION = YES;
355 | CLANG_WARN_CONSTANT_CONVERSION = YES;
356 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
357 | CLANG_WARN_EMPTY_BODY = YES;
358 | CLANG_WARN_ENUM_CONVERSION = YES;
359 | CLANG_WARN_INT_CONVERSION = YES;
360 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
361 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
362 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
363 | COPY_PHASE_STRIP = YES;
364 | ENABLE_NS_ASSERTIONS = NO;
365 | GCC_C_LANGUAGE_STANDARD = gnu99;
366 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
367 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
368 | GCC_WARN_UNDECLARED_SELECTOR = YES;
369 | GCC_WARN_UNINITIALIZED_AUTOS = YES;
370 | GCC_WARN_UNUSED_FUNCTION = YES;
371 | GCC_WARN_UNUSED_VARIABLE = YES;
372 | IPHONEOS_DEPLOYMENT_TARGET = 7.0;
373 | SDKROOT = iphoneos;
374 | VALIDATE_PRODUCT = YES;
375 | };
376 | name = Release;
377 | };
378 | C74B24B61876161900C7DF54 /* Debug */ = {
379 | isa = XCBuildConfiguration;
380 | buildSettings = {
381 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
382 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
383 | DEVELOPMENT_TEAM = "";
384 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
385 | GCC_PREFIX_HEADER = "RFRateMeDemo/RFRateMeDemo-Prefix.pch";
386 | INFOPLIST_FILE = "RFRateMeDemo/RFRateMeDemo-Info.plist";
387 | PRODUCT_NAME = "$(TARGET_NAME)";
388 | WRAPPER_EXTENSION = app;
389 | };
390 | name = Debug;
391 | };
392 | C74B24B71876161900C7DF54 /* Release */ = {
393 | isa = XCBuildConfiguration;
394 | buildSettings = {
395 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
396 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
397 | DEVELOPMENT_TEAM = "";
398 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
399 | GCC_PREFIX_HEADER = "RFRateMeDemo/RFRateMeDemo-Prefix.pch";
400 | INFOPLIST_FILE = "RFRateMeDemo/RFRateMeDemo-Info.plist";
401 | PRODUCT_NAME = "$(TARGET_NAME)";
402 | WRAPPER_EXTENSION = app;
403 | };
404 | name = Release;
405 | };
406 | C74B24B91876161900C7DF54 /* Debug */ = {
407 | isa = XCBuildConfiguration;
408 | buildSettings = {
409 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
410 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/RFRateMeDemo.app/RFRateMeDemo";
411 | FRAMEWORK_SEARCH_PATHS = (
412 | "$(SDKROOT)/Developer/Library/Frameworks",
413 | "$(inherited)",
414 | "$(DEVELOPER_FRAMEWORKS_DIR)",
415 | );
416 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
417 | GCC_PREFIX_HEADER = "RFRateMeDemo/RFRateMeDemo-Prefix.pch";
418 | GCC_PREPROCESSOR_DEFINITIONS = (
419 | "DEBUG=1",
420 | "$(inherited)",
421 | );
422 | INFOPLIST_FILE = "RFRateMeDemoTests/RFRateMeDemoTests-Info.plist";
423 | PRODUCT_NAME = "$(TARGET_NAME)";
424 | TEST_HOST = "$(BUNDLE_LOADER)";
425 | WRAPPER_EXTENSION = xctest;
426 | };
427 | name = Debug;
428 | };
429 | C74B24BA1876161900C7DF54 /* Release */ = {
430 | isa = XCBuildConfiguration;
431 | buildSettings = {
432 | ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
433 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/RFRateMeDemo.app/RFRateMeDemo";
434 | FRAMEWORK_SEARCH_PATHS = (
435 | "$(SDKROOT)/Developer/Library/Frameworks",
436 | "$(inherited)",
437 | "$(DEVELOPER_FRAMEWORKS_DIR)",
438 | );
439 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
440 | GCC_PREFIX_HEADER = "RFRateMeDemo/RFRateMeDemo-Prefix.pch";
441 | INFOPLIST_FILE = "RFRateMeDemoTests/RFRateMeDemoTests-Info.plist";
442 | PRODUCT_NAME = "$(TARGET_NAME)";
443 | TEST_HOST = "$(BUNDLE_LOADER)";
444 | WRAPPER_EXTENSION = xctest;
445 | };
446 | name = Release;
447 | };
448 | /* End XCBuildConfiguration section */
449 |
450 | /* Begin XCConfigurationList section */
451 | C74B247E1876161900C7DF54 /* Build configuration list for PBXProject "RFRateMeDemo" */ = {
452 | isa = XCConfigurationList;
453 | buildConfigurations = (
454 | C74B24B31876161900C7DF54 /* Debug */,
455 | C74B24B41876161900C7DF54 /* Release */,
456 | );
457 | defaultConfigurationIsVisible = 0;
458 | defaultConfigurationName = Release;
459 | };
460 | C74B24B51876161900C7DF54 /* Build configuration list for PBXNativeTarget "RFRateMeDemo" */ = {
461 | isa = XCConfigurationList;
462 | buildConfigurations = (
463 | C74B24B61876161900C7DF54 /* Debug */,
464 | C74B24B71876161900C7DF54 /* Release */,
465 | );
466 | defaultConfigurationIsVisible = 0;
467 | defaultConfigurationName = Release;
468 | };
469 | C74B24B81876161900C7DF54 /* Build configuration list for PBXNativeTarget "RFRateMeDemoTests" */ = {
470 | isa = XCConfigurationList;
471 | buildConfigurations = (
472 | C74B24B91876161900C7DF54 /* Debug */,
473 | C74B24BA1876161900C7DF54 /* Release */,
474 | );
475 | defaultConfigurationIsVisible = 0;
476 | defaultConfigurationName = Release;
477 | };
478 | /* End XCConfigurationList section */
479 | };
480 | rootObject = C74B247B1876161900C7DF54 /* Project object */;
481 | }
482 |
--------------------------------------------------------------------------------