Skip to content

Commit

Permalink
popover as lib
Browse files Browse the repository at this point in the history
  • Loading branch information
Alvise Susmel committed May 1, 2012
1 parent fd56aa5 commit 5439e1f
Show file tree
Hide file tree
Showing 6 changed files with 225 additions and 8 deletions.
135 changes: 129 additions & 6 deletions FPPopoverDemo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,30 @@
186C43871538512200502D64 /* FPViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 186C43861538512200502D64 /* FPViewController.m */; };
186C438A1538512200502D64 /* FPViewController_iPhone.xib in Resources */ = {isa = PBXBuildFile; fileRef = 186C43881538512200502D64 /* FPViewController_iPhone.xib */; };
186C438D1538512200502D64 /* FPViewController_iPad.xib in Resources */ = {isa = PBXBuildFile; fileRef = 186C438B1538512200502D64 /* FPViewController_iPad.xib */; };
186C43981538513B00502D64 /* FPPopoverController.m in Sources */ = {isa = PBXBuildFile; fileRef = 186C43951538513B00502D64 /* FPPopoverController.m */; };
186C43991538513B00502D64 /* FPPopoverView.m in Sources */ = {isa = PBXBuildFile; fileRef = 186C43971538513B00502D64 /* FPPopoverView.m */; };
186C439B153851F600502D64 /* Readme.md in Resources */ = {isa = PBXBuildFile; fileRef = 186C439A153851F600502D64 /* Readme.md */; };
186C43A115386E2200502D64 /* DemoTableController.m in Sources */ = {isa = PBXBuildFile; fileRef = 186C43A015386E2200502D64 /* DemoTableController.m */; };
186C43AC153CAD1000502D64 /* FPTouchView.m in Sources */ = {isa = PBXBuildFile; fileRef = 186C43AB153CAD1000502D64 /* FPTouchView.m */; };
18D8FA31155050F0005E2222 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 186C43751538512100502D64 /* Foundation.framework */; };
18D8FA3B155050FE005E2222 /* FPPopoverController.m in Sources */ = {isa = PBXBuildFile; fileRef = 186C43951538513B00502D64 /* FPPopoverController.m */; };
18D8FA3C155050FE005E2222 /* FPPopoverView.m in Sources */ = {isa = PBXBuildFile; fileRef = 186C43971538513B00502D64 /* FPPopoverView.m */; };
18D8FA3D155050FE005E2222 /* FPTouchView.m in Sources */ = {isa = PBXBuildFile; fileRef = 186C43AB153CAD1000502D64 /* FPTouchView.m */; };
18D8FA3E15505102005E2222 /* FPPopoverController.h in Headers */ = {isa = PBXBuildFile; fileRef = 186C43941538513B00502D64 /* FPPopoverController.h */; settings = {ATTRIBUTES = (Public, ); }; };
18D8FA3F15505102005E2222 /* FPPopoverView.h in Headers */ = {isa = PBXBuildFile; fileRef = 186C43961538513B00502D64 /* FPPopoverView.h */; settings = {ATTRIBUTES = (Public, ); }; };
18D8FA4015505102005E2222 /* FPTouchView.h in Headers */ = {isa = PBXBuildFile; fileRef = 186C43AA153CAD1000502D64 /* FPTouchView.h */; settings = {ATTRIBUTES = (Public, ); }; };
18D8FA4315505122005E2222 /* libfppopover.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 18D8FA30155050F0005E2222 /* libfppopover.a */; };
18EF6DEB154ED27D005AB1DD /* background.png in Resources */ = {isa = PBXBuildFile; fileRef = 18EF6DE9154ED27D005AB1DD /* background.png */; };
18EF6DEC154ED27D005AB1DD /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 18EF6DEA154ED27D005AB1DD /* [email protected] */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
18D8FA4115505114005E2222 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 186C43661538512100502D64 /* Project object */;
proxyType = 1;
remoteGlobalIDString = 18D8FA2F155050F0005E2222;
remoteInfo = fppopover;
};
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
186C436F1538512100502D64 /* FPPopoverDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = FPPopoverDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
186C43731538512100502D64 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
Expand Down Expand Up @@ -55,6 +70,8 @@
1892EE5E153EE1BC000344F1 /* it */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = it; path = /Users/alvise/Documents/50public/FPPopoverDemo/FPPopoverDemo/it.lproj/FPViewController_iPhone.xib; sourceTree = "<absolute>"; };
1892EE5F153EE1BC000344F1 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = /Users/alvise/Documents/50public/FPPopoverDemo/FPPopoverDemo/it.lproj/InfoPlist.strings; sourceTree = "<absolute>"; };
1892EE60153EE1BC000344F1 /* it */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = it; path = /Users/alvise/Documents/50public/FPPopoverDemo/FPPopoverDemo/it.lproj/FPViewController_iPad.xib; sourceTree = "<absolute>"; };
18D8FA30155050F0005E2222 /* libfppopover.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libfppopover.a; sourceTree = BUILT_PRODUCTS_DIR; };
18D8FA34155050F0005E2222 /* fppopover-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "fppopover-Prefix.pch"; sourceTree = "<group>"; };
18EF6DE9154ED27D005AB1DD /* background.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = background.png; sourceTree = "<group>"; };
18EF6DEA154ED27D005AB1DD /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
/* End PBXFileReference section */
Expand All @@ -64,12 +81,21 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
18D8FA4315505122005E2222 /* libfppopover.a in Frameworks */,
186C43741538512100502D64 /* UIKit.framework in Frameworks */,
186C43761538512100502D64 /* Foundation.framework in Frameworks */,
186C43781538512100502D64 /* CoreGraphics.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
18D8FA2D155050F0005E2222 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
18D8FA31155050F0005E2222 /* Foundation.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
Expand All @@ -79,6 +105,7 @@
186C439A153851F600502D64 /* Readme.md */,
186C43931538512A00502D64 /* FPPopover */,
186C43791538512100502D64 /* FPPopoverDemo */,
18D8FA32155050F0005E2222 /* fppopover */,
186C43721538512100502D64 /* Frameworks */,
186C43701538512100502D64 /* Products */,
);
Expand All @@ -88,6 +115,7 @@
isa = PBXGroup;
children = (
186C436F1538512100502D64 /* FPPopoverDemo.app */,
18D8FA30155050F0005E2222 /* libfppopover.a */,
);
name = Products;
sourceTree = "<group>";
Expand Down Expand Up @@ -143,6 +171,22 @@
name = FPPopover;
sourceTree = "<group>";
};
18D8FA32155050F0005E2222 /* fppopover */ = {
isa = PBXGroup;
children = (
18D8FA33155050F0005E2222 /* Supporting Files */,
);
path = fppopover;
sourceTree = "<group>";
};
18D8FA33155050F0005E2222 /* Supporting Files */ = {
isa = PBXGroup;
children = (
18D8FA34155050F0005E2222 /* fppopover-Prefix.pch */,
);
name = "Supporting Files";
sourceTree = "<group>";
};
18EF6DD9154ECC72005AB1DD /* Resources */ = {
isa = PBXGroup;
children = (
Expand All @@ -162,6 +206,19 @@
};
/* End PBXGroup section */

/* Begin PBXHeadersBuildPhase section */
18D8FA2E155050F0005E2222 /* Headers */ = {
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
18D8FA3E15505102005E2222 /* FPPopoverController.h in Headers */,
18D8FA3F15505102005E2222 /* FPPopoverView.h in Headers */,
18D8FA4015505102005E2222 /* FPTouchView.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXHeadersBuildPhase section */

/* Begin PBXNativeTarget section */
186C436E1538512100502D64 /* FPPopoverDemo */ = {
isa = PBXNativeTarget;
Expand All @@ -174,12 +231,30 @@
buildRules = (
);
dependencies = (
18D8FA4215505114005E2222 /* PBXTargetDependency */,
);
name = FPPopoverDemo;
productName = FPPopoverDemo;
productReference = 186C436F1538512100502D64 /* FPPopoverDemo.app */;
productType = "com.apple.product-type.application";
};
18D8FA2F155050F0005E2222 /* fppopover */ = {
isa = PBXNativeTarget;
buildConfigurationList = 18D8FA38155050F0005E2222 /* Build configuration list for PBXNativeTarget "fppopover" */;
buildPhases = (
18D8FA2C155050F0005E2222 /* Sources */,
18D8FA2D155050F0005E2222 /* Frameworks */,
18D8FA2E155050F0005E2222 /* Headers */,
);
buildRules = (
);
dependencies = (
);
name = fppopover;
productName = fppopover;
productReference = 18D8FA30155050F0005E2222 /* libfppopover.a */;
productType = "com.apple.product-type.library.static";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
Expand All @@ -203,6 +278,7 @@
projectRoot = "";
targets = (
186C436E1538512100502D64 /* FPPopoverDemo */,
18D8FA2F155050F0005E2222 /* fppopover */,
);
};
/* End PBXProject section */
Expand Down Expand Up @@ -231,15 +307,30 @@
186C43801538512200502D64 /* main.m in Sources */,
186C43841538512200502D64 /* FPAppDelegate.m in Sources */,
186C43871538512200502D64 /* FPViewController.m in Sources */,
186C43981538513B00502D64 /* FPPopoverController.m in Sources */,
186C43991538513B00502D64 /* FPPopoverView.m in Sources */,
186C43A115386E2200502D64 /* DemoTableController.m in Sources */,
186C43AC153CAD1000502D64 /* FPTouchView.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
18D8FA2C155050F0005E2222 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
18D8FA3B155050FE005E2222 /* FPPopoverController.m in Sources */,
18D8FA3C155050FE005E2222 /* FPPopoverView.m in Sources */,
18D8FA3D155050FE005E2222 /* FPTouchView.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXTargetDependency section */
18D8FA4215505114005E2222 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 18D8FA2F155050F0005E2222 /* fppopover */;
targetProxy = 18D8FA4115505114005E2222 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */

/* Begin PBXVariantGroup section */
186C437C1538512100502D64 /* InfoPlist.strings */ = {
isa = PBXVariantGroup;
Expand Down Expand Up @@ -341,6 +432,30 @@
};
name = Release;
};
18D8FA39155050F0005E2222 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
DSTROOT = /tmp/fppopover.dst;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "fppopover/fppopover-Prefix.pch";
OTHER_LDFLAGS = "-ObjC";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
};
name = Debug;
};
18D8FA3A155050F0005E2222 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
DSTROOT = /tmp/fppopover.dst;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "fppopover/fppopover-Prefix.pch";
OTHER_LDFLAGS = "-ObjC";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
Expand All @@ -362,6 +477,14 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
18D8FA38155050F0005E2222 /* Build configuration list for PBXNativeTarget "fppopover" */ = {
isa = XCConfigurationList;
buildConfigurations = (
18D8FA39155050F0005E2222 /* Debug */,
18D8FA3A155050F0005E2222 /* Release */,
);
defaultConfigurationIsVisible = 0;
};
/* End XCConfigurationList section */
};
rootObject = 186C43661538512100502D64 /* Project object */;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "18D8FA2F155050F0005E2222"
BuildableName = "libfppopover.a"
BlueprintName = "fppopover"
ReferencedContainer = "container:FPPopoverDemo.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
<Testables>
</Testables>
</TestAction>
<LaunchAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
allowLocationSimulation = "YES">
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,34 @@
<key>orderHint</key>
<integer>0</integer>
</dict>
<key>fppopover.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>1</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
<dict>
<key>1830E9FE15504F5C00A8776B</key>
<dict>
<key>primary</key>
<true/>
</dict>
<key>1830EA151550504100A8776B</key>
<dict>
<key>primary</key>
<true/>
</dict>
<key>186C436E1538512100502D64</key>
<dict>
<key>primary</key>
<true/>
</dict>
<key>18D8FA2F155050F0005E2222</key>
<dict>
<key>primary</key>
<true/>
</dict>
</dict>
</dict>
</plist>
13 changes: 11 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,24 @@ Let's start with a simple example
[controller release];
}

This will display a black popover with automatic arrow positioning and a maximum of 300x200 content size and no delegate messages.
This will display a black popover with automatic arrow positioning and a maximum of 200x300 content size and no delegate messages.

The title of YourViewController (controller.title) will be presented on the top.

###Customize the size
The default size of the content in popover is 200x300. That means the

Customize the tint
###Customize the tint

* FPPopoverBlackTint (default)
* FPPopoverLightGrayTint
* FPPopoverGreenTint
* FPPopoverRedTint

popover.tint = FPPopoverRedTint;


###Force the arrow direction

###Delegate messages

7 changes: 7 additions & 0 deletions fppopover/fppopover-Prefix.pch
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
//
// Prefix header for all source files of the 'fppopover' target in the 'fppopover' project
//

#ifdef __OBJC__
#import <Foundation/Foundation.h>
#endif

0 comments on commit 5439e1f

Please sign in to comment.