Permalink
Browse files

Merge pull request #34 from cocoa-factory/master

added PopoverViewCompatibility.h
  • Loading branch information...
2 parents b283b67 + 5122f1e commit 6d80255deb722ce17117b762b6b4ac9200812dab Oliver Clark Rickard committed Jul 22, 2013
View
@@ -0,0 +1,24 @@
+Pod::Spec.new do |s|
+
+ s.name = "PopoverView"
+ s.version = "0.0.2"
+ s.summary = "A simple UIView popover control for iPhone/iPad written with CoreGraphics."
+ s.homepage = "https://github.com/cocoa-factory/PopoverView"
+ s.license = {
+ :type => 'MIT',
+ :text => <<-LICENSE
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ LICENSE
+ }
+ s.author = { "Raquel Galan" => "iprayforwaves@gmail.com" }
+ s.author = 'runway20'
+ s.source = { :git => "https://github.com/cocoa-factory/PopoverView.git", :tag => '0.0.2'}
+ s.platform = :ios
+ s.source_files = 'PopoverView/*.{h,m}'
+
+end
@@ -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,8 @@
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>"; };
+ E7F6CF2B179D573700C944E3 /* PopoverView.podspec */ = {isa = PBXFileReference; lastKnownFileType = text; path = PopoverView.podspec; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.ruby; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@@ -102,6 +104,7 @@
B1175C4A15E3FBEE002FBFF1 = {
isa = PBXGroup;
children = (
+ E7F6CF2B179D573700C944E3 /* PopoverView.podspec */,
B1175C9115E3FC07002FBFF1 /* QuartzCore.framework */,
B1175C5F15E3FBEE002FBFF1 /* popover */,
B1175C8015E3FBEE002FBFF1 /* popoverTests */,
@@ -213,6 +216,7 @@
B1175C9315E3FC13002FBFF1 /* PopoverView.h */,
0867719D1689B04F00ED150F /* PopoverView_Configuration.h */,
B1175C9415E3FC13002FBFF1 /* PopoverView.m */,
+ E7F6CF2A179D542E00C944E3 /* PopoverViewCompatibility.h */,
);
name = PopoverView;
path = ../PopoverView;
@@ -450,6 +454,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 +468,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 6d80255

Please sign in to comment.