Permalink
Browse files

added PopoverViewCompatibility.h

allows building without warnings on 6.x
  • Loading branch information...
1 parent b283b67 commit 4cd41c8a606c0503881f5214110ecd96081da7da @BlackBears BlackBears committed Jul 22, 2013
@@ -7,6 +7,7 @@
//
#import <UIKit/UIKit.h>
+#import "PopoverViewCompatibility.h"
/**************** Support both ARC and non-ARC ********************/
@@ -0,0 +1,23 @@
+//
+// PopoverViewCompatibility.h
+// popover
+//
+// Created by alanduncan on 7/22/13.
+// Copyright (c) 2013 Oliver Rickard. All rights reserved.
+//
+
+#ifndef popover_PopoverViewCompatibility_h
+#define popover_PopoverViewCompatibility_h
+
+#ifdef __IPHONE_6_0
+
+#define UITextAlignmentCenter NSTextAlignmentCenter
+#define UITextAlignmentLeft NSTextAlignmentLeft
+#define UITextAlignmentRight NSTextAlignmentRight
+#define UILineBreakModeTailTruncation NSLineBreakByTruncatingTail
+#define UILineBreakModeMiddleTruncation NSLineBreakByTruncatingMiddle
+#define UILineBreakModeWordWrap NSLineBreakByWordWrapping
+
+#endif
+
+#endif
@@ -72,6 +72,7 @@
B14F47571603A267003EC4FF /* success@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "success@2x.png"; path = "popover/Images/success@2x.png"; sourceTree = SOURCE_ROOT; };
B1ACBE961603859A006F8461 /* OCDaysView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OCDaysView.h; sourceTree = "<group>"; };
B1ACBE971603859A006F8461 /* OCDaysView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OCDaysView.m; sourceTree = "<group>"; };
+ E7F6CF2A179D542E00C944E3 /* PopoverViewCompatibility.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PopoverViewCompatibility.h; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@@ -213,6 +214,7 @@
B1175C9315E3FC13002FBFF1 /* PopoverView.h */,
0867719D1689B04F00ED150F /* PopoverView_Configuration.h */,
B1175C9415E3FC13002FBFF1 /* PopoverView.m */,
+ E7F6CF2A179D542E00C944E3 /* PopoverViewCompatibility.h */,
);
name = PopoverView;
path = ../PopoverView;
@@ -450,6 +452,7 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "popover/Demo/popover-Prefix.pch";
INFOPLIST_FILE = "popover/Demo/popover-Info.plist";
+ IPHONEOS_DEPLOYMENT_TARGET = 6.1;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "C183E71C-4BA9-4B64-B7E5-BA551FF1F744";
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "C183E71C-4BA9-4B64-B7E5-BA551FF1F744";
@@ -463,6 +466,7 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "popover/Demo/popover-Prefix.pch";
INFOPLIST_FILE = "popover/Demo/popover-Info.plist";
+ IPHONEOS_DEPLOYMENT_TARGET = 6.1;
PRODUCT_NAME = "$(TARGET_NAME)";
WRAPPER_EXTENSION = app;
};
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>IDESourceControlProjectIdentifier</key>
+ <string>81D56861-47C8-4C91-BF6F-591384D37AD7</string>
+ <key>IDESourceControlProjectName</key>
+ <string>popover</string>
+ <key>IDESourceControlProjectOriginsDictionary</key>
+ <dict>
+ <key>20888322-FA45-47C8-B767-56F998A37116</key>
+ <string>https://github.com/cocoa-factory/PopoverView.git</string>
+ </dict>
+ <key>IDESourceControlProjectPath</key>
+ <string>popover.xcodeproj/project.xcworkspace</string>
+ <key>IDESourceControlProjectRelativeInstallPathDictionary</key>
+ <dict>
+ <key>20888322-FA45-47C8-B767-56F998A37116</key>
+ <string>../..</string>
+ </dict>
+ <key>IDESourceControlProjectURL</key>
+ <string>https://github.com/cocoa-factory/PopoverView.git</string>
+ <key>IDESourceControlProjectVersion</key>
+ <integer>110</integer>
+ <key>IDESourceControlProjectWCCIdentifier</key>
+ <string>20888322-FA45-47C8-B767-56F998A37116</string>
+ <key>IDESourceControlProjectWCConfigurations</key>
+ <array>
+ <dict>
+ <key>IDESourceControlRepositoryExtensionIdentifierKey</key>
+ <string>public.vcs.git</string>
+ <key>IDESourceControlWCCIdentifierKey</key>
+ <string>20888322-FA45-47C8-B767-56F998A37116</string>
+ <key>IDESourceControlWCCName</key>
+ <string>PopoverView-CCF</string>
+ </dict>
+ </array>
+</dict>
+</plist>
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>SchemeUserState</key>
+ <dict>
+ <key>popover.xcscheme</key>
+ <dict>
+ <key>orderHint</key>
+ <integer>0</integer>
+ </dict>
+ </dict>
+ <key>SuppressBuildableAutocreation</key>
+ <dict>
+ <key>B1175C5415E3FBEE002FBFF1</key>
+ <dict>
+ <key>primary</key>
+ <true/>
+ </dict>
+ <key>B1175C7815E3FBEE002FBFF1</key>
+ <dict>
+ <key>primary</key>
+ <true/>
+ </dict>
+ </dict>
+</dict>
+</plist>
@@ -7,6 +7,7 @@
//
#import <UIKit/UIKit.h>
+#import "PopoverViewCompatibility.h"
@interface OCDaysView : UIView {
int startCellX;

0 comments on commit 4cd41c8

Please sign in to comment.