Skip to content

Commit

Permalink
Fixed iOS6 deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklockwood committed Oct 3, 2012
1 parent 9a892e7 commit c4efed2
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 30 deletions.
15 changes: 0 additions & 15 deletions .gitignore

This file was deleted.

2 changes: 1 addition & 1 deletion Examples/ARC Test/Classes/iRateAppDelegate.m
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ + (void)initialize
//set the app and bundle ID. normally you wouldn't need to do this //set the app and bundle ID. normally you wouldn't need to do this
//but we need to test with an app that's actually on the store //but we need to test with an app that's actually on the store
[iRate sharedInstance].appStoreID = 355313284; [iRate sharedInstance].appStoreID = 355313284;
[iRate sharedInstance].applicationBundleID = @"com.charcoaldesign.rainbowblocks"; [iRate sharedInstance].applicationBundleID = @"com.charcoaldesign.rainbowblocks-free";
[iRate sharedInstance].onlyPromptIfLatestVersion = NO; [iRate sharedInstance].onlyPromptIfLatestVersion = NO;


//enable preview mode //enable preview mode
Expand Down
2 changes: 1 addition & 1 deletion Examples/Events Demo/Classes/iRateAppDelegate.m
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ + (void)initialize
//set the bundle ID. normally you wouldn't need to do this //set the bundle ID. normally you wouldn't need to do this
//as it is picked up automatically from your Info.plist file //as it is picked up automatically from your Info.plist file
//but we want to test with an app that's actually on the store //but we want to test with an app that's actually on the store
[iRate sharedInstance].applicationBundleID = @"com.charcoaldesign.rainbowblocks-lite"; [iRate sharedInstance].applicationBundleID = @"com.charcoaldesign.rainbowblocks-free";
[iRate sharedInstance].onlyPromptIfLatestVersion = NO; [iRate sharedInstance].onlyPromptIfLatestVersion = NO;


//set events count (default is 10) //set events count (default is 10)
Expand Down
2 changes: 1 addition & 1 deletion Examples/Resizing Disabled/Classes/iRateAppDelegate.m
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ + (void)initialize
//set the bundle ID. normally you wouldn't need to do this //set the bundle ID. normally you wouldn't need to do this
//as it is picked up automatically from your Info.plist file //as it is picked up automatically from your Info.plist file
//but we want to test with an app that's actually on the store //but we want to test with an app that's actually on the store
[iRate sharedInstance].applicationBundleID = @"com.charcoaldesign.rainbowblocks-lite"; [iRate sharedInstance].applicationBundleID = @"com.charcoaldesign.rainbowblocks-free";


//enable preview mode //enable preview mode
[iRate sharedInstance].previewMode = YES; [iRate sharedInstance].previewMode = YES;
Expand Down
2 changes: 1 addition & 1 deletion Examples/Zero Config Demo/ZeroConfig-Info.plist
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<key>CFBundleIconFile</key> <key>CFBundleIconFile</key>
<string></string> <string></string>
<key>CFBundleIdentifier</key> <key>CFBundleIdentifier</key>
<string>com.charcoaldesign.rainbowblocks</string> <string>com.charcoaldesign.rainbowblocks-free</string>
<key>CFBundleInfoDictionaryVersion</key> <key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string> <string>6.0</string>
<key>CFBundleName</key> <key>CFBundleName</key>
Expand Down
2 changes: 1 addition & 1 deletion Examples/iPhone Demo/Classes/iRateAppDelegate.m
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ + (void)initialize
//set the bundle ID. normally you wouldn't need to do this //set the bundle ID. normally you wouldn't need to do this
//as it is picked up automatically from your Info.plist file //as it is picked up automatically from your Info.plist file
//but we want to test with an app that's actually on the store //but we want to test with an app that's actually on the store
[iRate sharedInstance].applicationBundleID = @"com.charcoaldesign.rainbowblocks-lite"; [iRate sharedInstance].applicationBundleID = @"com.charcoaldesign.rainbowblocks-free";
[iRate sharedInstance].onlyPromptIfLatestVersion = NO; [iRate sharedInstance].onlyPromptIfLatestVersion = NO;


//enable preview mode //enable preview mode
Expand Down
4 changes: 2 additions & 2 deletions Examples/iPhone Demo/iRate.xcodeproj/project.pbxproj
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
GCC_PREFIX_HEADER = iRate_Prefix.pch; GCC_PREFIX_HEADER = iRate_Prefix.pch;
GCC_PREPROCESSOR_DEFINITIONS = "DEBUG=1"; GCC_PREPROCESSOR_DEFINITIONS = "DEBUG=1";
INFOPLIST_FILE = "iRate-Info.plist"; INFOPLIST_FILE = "iRate-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 3.2; IPHONEOS_DEPLOYMENT_TARGET = 6.0;
PRODUCT_NAME = iRate; PRODUCT_NAME = iRate;
TARGETED_DEVICE_FAMILY = "1,2"; TARGETED_DEVICE_FAMILY = "1,2";
}; };
Expand All @@ -229,7 +229,7 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = iRate_Prefix.pch; GCC_PREFIX_HEADER = iRate_Prefix.pch;
INFOPLIST_FILE = "iRate-Info.plist"; INFOPLIST_FILE = "iRate-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 3.2; IPHONEOS_DEPLOYMENT_TARGET = 6.0;
PRODUCT_NAME = iRate; PRODUCT_NAME = iRate;
TARGETED_DEVICE_FAMILY = "1,2"; TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES; VALIDATE_PRODUCT = YES;
Expand Down
2 changes: 1 addition & 1 deletion LICENCE.md
Original file line number Original file line Diff line number Diff line change
@@ -1,6 +1,6 @@
iRate iRate


Version 1.5.3, September 24th, 2012 Version 1.5.4, October 3rd, 2012


Copyright (C) 2011 Charcoal Design Copyright (C) 2011 Charcoal Design


Expand Down
4 changes: 4 additions & 0 deletions RELEASE NOTES.md
Original file line number Original file line Diff line number Diff line change
@@ -1,3 +1,7 @@
Version 1.5.4

- Fixed deprecation warning in iOS 6

Version 1.5.3 Version 1.5.3


- Corrected minor spelling mistake in German translation - Corrected minor spelling mistake in German translation
Expand Down
5 changes: 2 additions & 3 deletions iRate/iRate.h
Original file line number Original file line Diff line number Diff line change
@@ -1,15 +1,14 @@
// //
// iRate.h // iRate.h
// //
// Version 1.5.3 // Version 1.5.4
// //
// Created by Nick Lockwood on 26/01/2011. // Created by Nick Lockwood on 26/01/2011.
// Copyright 2011 Charcoal Design // Copyright 2011 Charcoal Design
// //
// Distributed under the permissive zlib license // Distributed under the permissive zlib license
// Get the latest version from either of these locations: // Get the latest version from here:
// //
// http://charcoaldesign.co.uk/source/cocoa#irate
// https://github.com/nicklockwood/iRate // https://github.com/nicklockwood/iRate
// //
// This software is provided 'as-is', without any express or implied // This software is provided 'as-is', without any express or implied
Expand Down
12 changes: 8 additions & 4 deletions iRate/iRate.m
Original file line number Original file line Diff line number Diff line change
@@ -1,15 +1,14 @@
// //
// iRate.m // iRate.m
// //
// Version 1.5.3 // Version 1.5.4
// //
// Created by Nick Lockwood on 26/01/2011. // Created by Nick Lockwood on 26/01/2011.
// Copyright 2011 Charcoal Design // Copyright 2011 Charcoal Design
// //
// Distributed under the permissive zlib license // Distributed under the permissive zlib license
// Get the latest version from either of these locations: // Get the latest version from here:
// //
// http://charcoaldesign.co.uk/source/cocoa#irate
// https://github.com/nicklockwood/iRate // https://github.com/nicklockwood/iRate
// //
// This software is provided 'as-is', without any express or implied // This software is provided 'as-is', without any express or implied
Expand Down Expand Up @@ -863,9 +862,14 @@ - (void)resizeAlertView:(UIAlertView *)alertView
} }
else if ([label.text isEqualToString:alertView.message]) else if ([label.text isEqualToString:alertView.message])
{ {
label.alpha = 1.0f;
#if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_6_0
label.lineBreakMode = NSLineBreakByWordWrapping;
#else
label.lineBreakMode = UILineBreakModeWordWrap; label.lineBreakMode = UILineBreakModeWordWrap;
#endif
label.numberOfLines = 0; label.numberOfLines = 0;
label.alpha = 1.0f;
[label sizeToFit]; [label sizeToFit];
offset += label.frame.size.height - frame.size.height; offset += label.frame.size.height - frame.size.height;
frame.origin.y += messageOffset; frame.origin.y += messageOffset;
Expand Down

0 comments on commit c4efed2

Please sign in to comment.