Permalink
Browse files

Fixed iOS6 deprecation warning

  • Loading branch information...
1 parent 9a892e7 commit c4efed293396967681f474c1343a198904c35bdf @nicklockwood committed Oct 3, 2012
View
@@ -1,15 +0,0 @@
-#Xcode
-build/*
-*.pbxuser
-!default.pbxuser
-*.mode1v3
-!default.mode1v3
-*.mode2v3
-!default.mode2v3
-*.perspectivev3
-!default.perspectivev3
-*.xcworkspace
-!default.xcworkspace
-xcuserdata
-*.moved-aside
-.DS_Store
@@ -25,7 +25,7 @@ + (void)initialize
//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
[iRate sharedInstance].appStoreID = 355313284;
- [iRate sharedInstance].applicationBundleID = @"com.charcoaldesign.rainbowblocks";
+ [iRate sharedInstance].applicationBundleID = @"com.charcoaldesign.rainbowblocks-free";
[iRate sharedInstance].onlyPromptIfLatestVersion = NO;
//enable preview mode
@@ -25,7 +25,7 @@ + (void)initialize
//set the bundle ID. normally you wouldn't need to do this
//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
- [iRate sharedInstance].applicationBundleID = @"com.charcoaldesign.rainbowblocks-lite";
+ [iRate sharedInstance].applicationBundleID = @"com.charcoaldesign.rainbowblocks-free";
[iRate sharedInstance].onlyPromptIfLatestVersion = NO;
//set events count (default is 10)
@@ -25,7 +25,7 @@ + (void)initialize
//set the bundle ID. normally you wouldn't need to do this
//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
- [iRate sharedInstance].applicationBundleID = @"com.charcoaldesign.rainbowblocks-lite";
+ [iRate sharedInstance].applicationBundleID = @"com.charcoaldesign.rainbowblocks-free";
//enable preview mode
[iRate sharedInstance].previewMode = YES;
@@ -11,7 +11,7 @@
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIdentifier</key>
- <string>com.charcoaldesign.rainbowblocks</string>
+ <string>com.charcoaldesign.rainbowblocks-free</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
@@ -25,7 +25,7 @@ + (void)initialize
//set the bundle ID. normally you wouldn't need to do this
//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
- [iRate sharedInstance].applicationBundleID = @"com.charcoaldesign.rainbowblocks-lite";
+ [iRate sharedInstance].applicationBundleID = @"com.charcoaldesign.rainbowblocks-free";
[iRate sharedInstance].onlyPromptIfLatestVersion = NO;
//enable preview mode
@@ -215,7 +215,7 @@
GCC_PREFIX_HEADER = iRate_Prefix.pch;
GCC_PREPROCESSOR_DEFINITIONS = "DEBUG=1";
INFOPLIST_FILE = "iRate-Info.plist";
- IPHONEOS_DEPLOYMENT_TARGET = 3.2;
+ IPHONEOS_DEPLOYMENT_TARGET = 6.0;
PRODUCT_NAME = iRate;
TARGETED_DEVICE_FAMILY = "1,2";
};
@@ -229,7 +229,7 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = iRate_Prefix.pch;
INFOPLIST_FILE = "iRate-Info.plist";
- IPHONEOS_DEPLOYMENT_TARGET = 3.2;
+ IPHONEOS_DEPLOYMENT_TARGET = 6.0;
PRODUCT_NAME = iRate;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
View
@@ -1,6 +1,6 @@
iRate
-Version 1.5.3, September 24th, 2012
+Version 1.5.4, October 3rd, 2012
Copyright (C) 2011 Charcoal Design
View
@@ -1,3 +1,7 @@
+Version 1.5.4
+
+- Fixed deprecation warning in iOS 6
+
Version 1.5.3
- Corrected minor spelling mistake in German translation
View
@@ -1,15 +1,14 @@
//
// iRate.h
//
-// Version 1.5.3
+// Version 1.5.4
//
// Created by Nick Lockwood on 26/01/2011.
// Copyright 2011 Charcoal Design
//
// 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
//
// This software is provided 'as-is', without any express or implied
View
@@ -1,15 +1,14 @@
//
// iRate.m
//
-// Version 1.5.3
+// Version 1.5.4
//
// Created by Nick Lockwood on 26/01/2011.
// Copyright 2011 Charcoal Design
//
// 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
//
// This software is provided 'as-is', without any express or implied
@@ -863,9 +862,14 @@ - (void)resizeAlertView:(UIAlertView *)alertView
}
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;
+#endif
label.numberOfLines = 0;
+ label.alpha = 1.0f;
[label sizeToFit];
offset += label.frame.size.height - frame.size.height;
frame.origin.y += messageOffset;

0 comments on commit c4efed2

Please sign in to comment.