Skip to content

Commit

Permalink
added PopoverViewCompatibility.h
Browse files Browse the repository at this point in the history
allows building without warnings on 6.x
  • Loading branch information
BlackBears committed Jul 22, 2013
1 parent b283b67 commit 4cd41c8
Show file tree
Hide file tree
Showing 6 changed files with 95 additions and 0 deletions.
1 change: 1 addition & 0 deletions PopoverView/PopoverView.h
Expand Up @@ -7,6 +7,7 @@
// //


#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#import "PopoverViewCompatibility.h"




/**************** Support both ARC and non-ARC ********************/ /**************** Support both ARC and non-ARC ********************/
Expand Down
23 changes: 23 additions & 0 deletions PopoverView/PopoverViewCompatibility.h
@@ -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
4 changes: 4 additions & 0 deletions popover.xcodeproj/project.pbxproj
Expand Up @@ -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; }; 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>"; }; 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>"; }; 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 */ /* End PBXFileReference section */


/* Begin PBXFrameworksBuildPhase section */ /* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -213,6 +214,7 @@
B1175C9315E3FC13002FBFF1 /* PopoverView.h */, B1175C9315E3FC13002FBFF1 /* PopoverView.h */,
0867719D1689B04F00ED150F /* PopoverView_Configuration.h */, 0867719D1689B04F00ED150F /* PopoverView_Configuration.h */,
B1175C9415E3FC13002FBFF1 /* PopoverView.m */, B1175C9415E3FC13002FBFF1 /* PopoverView.m */,
E7F6CF2A179D542E00C944E3 /* PopoverViewCompatibility.h */,
); );
name = PopoverView; name = PopoverView;
path = ../PopoverView; path = ../PopoverView;
Expand Down Expand Up @@ -450,6 +452,7 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "popover/Demo/popover-Prefix.pch"; GCC_PREFIX_HEADER = "popover/Demo/popover-Prefix.pch";
INFOPLIST_FILE = "popover/Demo/popover-Info.plist"; INFOPLIST_FILE = "popover/Demo/popover-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 6.1;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "C183E71C-4BA9-4B64-B7E5-BA551FF1F744"; PROVISIONING_PROFILE = "C183E71C-4BA9-4B64-B7E5-BA551FF1F744";
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "C183E71C-4BA9-4B64-B7E5-BA551FF1F744"; "PROVISIONING_PROFILE[sdk=iphoneos*]" = "C183E71C-4BA9-4B64-B7E5-BA551FF1F744";
Expand All @@ -463,6 +466,7 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "popover/Demo/popover-Prefix.pch"; GCC_PREFIX_HEADER = "popover/Demo/popover-Prefix.pch";
INFOPLIST_FILE = "popover/Demo/popover-Info.plist"; INFOPLIST_FILE = "popover/Demo/popover-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 6.1;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
WRAPPER_EXTENSION = app; WRAPPER_EXTENSION = app;
}; };
Expand Down
@@ -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>
1 change: 1 addition & 0 deletions popover/Demo/Calendar View/OCDaysView.h
Expand Up @@ -7,6 +7,7 @@
// //


#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#import "PopoverViewCompatibility.h"


@interface OCDaysView : UIView { @interface OCDaysView : UIView {
int startCellX; int startCellX;
Expand Down

0 comments on commit 4cd41c8

Please sign in to comment.