diff --git a/.gitignore b/.gitignore index 9324a2d..5163a5a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,6 @@ Example/SlidingPanelController.xcodeproj/xcuserdata Example/SlidingPanelController.xcodeproj/project.xcworkspace/xcuserdata +Examples/SlidingPanelController.xcodeproj/project.xcworkspace/xcuserdata +Examples/SlidingPanelController.xcodeproj/xcuserdata +Examples/SlidingPanelControllerStoryboard.xcodeproj/project.xcworkspace +Examples/SlidingPanelControllerStoryboard.xcodeproj/xcuserdata diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b85c2d..a93beac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,11 @@ # MSSlidingPanelController Changelog +## 1.1.2 (Friday, February 28th, 2014) +- It is now possible to use **MSSlidingPanelController** with *Storyboard*. +- A new example using *Storyboard* has been added. ## 1.1.1 (Wednesday, January 29th, 2014) - Hide a false positive warning reported by clang analyzer. -- Add a script to update the build number. +- Add a script to update the build number of the exemple. ## 1.1.0 (Thursday, January 16th, 2014) -- It's now possible to add a completion block when we change the maximum width of panels. +- It now possible to add a completion block when we change the maximum width of panels. ## 1.0.0 (Wednesday, January 8th, 2014) - Initial release. diff --git a/Examples/EXAMPLES.md b/Examples/EXAMPLES.md new file mode 100644 index 0000000..3dba59c --- /dev/null +++ b/Examples/EXAMPLES.md @@ -0,0 +1,6 @@ +# Examples +*SlidingPanelController* and *SlidingPanelControllerStoryboard* allow you to understand how works **MSSlidingPanelController**. +## SlidingPanelController +*SlidingPanelController* shows most functionalities of **MSSlidingPanelController**. All this project is developed programmatically. +## SlidingPanelControllerStoryboard +*SlidingPanelControllerStoryboard* shows how use **MSSlidingPanelController** with the *Storyboard*. diff --git a/Example/Ressources/Icon.pcvd b/Examples/Resources/Icon.pcvd similarity index 100% rename from Example/Ressources/Icon.pcvd rename to Examples/Resources/Icon.pcvd diff --git a/Example/SlidingPanelController.xcodeproj/project.pbxproj b/Examples/SlidingPanelController.xcodeproj/project.pbxproj similarity index 99% rename from Example/SlidingPanelController.xcodeproj/project.pbxproj rename to Examples/SlidingPanelController.xcodeproj/project.pbxproj index f6bf37a..01d72d5 100644 --- a/Example/SlidingPanelController.xcodeproj/project.pbxproj +++ b/Examples/SlidingPanelController.xcodeproj/project.pbxproj @@ -102,18 +102,18 @@ isa = PBXGroup; children = ( 01C4F2741879D0F100CA9A41 /* Sources */, - 01C4F24B1879CF9D00CA9A41 /* Ressources */, + 01C4F24B1879CF9D00CA9A41 /* Resources */, ); path = SlidingPanelController; sourceTree = ""; }; - 01C4F24B1879CF9D00CA9A41 /* Ressources */ = { + 01C4F24B1879CF9D00CA9A41 /* Resources */ = { isa = PBXGroup; children = ( 01C4F2561879CF9D00CA9A41 /* Images.xcassets */, 01C4F2731879CFFB00CA9A41 /* Others */, ); - name = Ressources; + name = Resources; sourceTree = ""; }; 01C4F2731879CFFB00CA9A41 /* Others */ = { diff --git a/Example/SlidingPanelController.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Examples/SlidingPanelController.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 100% rename from Example/SlidingPanelController.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to Examples/SlidingPanelController.xcodeproj/project.xcworkspace/contents.xcworkspacedata diff --git a/Example/SlidingPanelController.xcodeproj/xcshareddata/xcschemes/SlidingPanelController.xcscheme b/Examples/SlidingPanelController.xcodeproj/xcshareddata/xcschemes/SlidingPanelController.xcscheme similarity index 100% rename from Example/SlidingPanelController.xcodeproj/xcshareddata/xcschemes/SlidingPanelController.xcscheme rename to Examples/SlidingPanelController.xcodeproj/xcshareddata/xcschemes/SlidingPanelController.xcscheme diff --git a/Example/SlidingPanelController/AppDelegate.h b/Examples/SlidingPanelController/AppDelegate.h similarity index 100% rename from Example/SlidingPanelController/AppDelegate.h rename to Examples/SlidingPanelController/AppDelegate.h diff --git a/Example/SlidingPanelController/AppDelegate.m b/Examples/SlidingPanelController/AppDelegate.m similarity index 100% rename from Example/SlidingPanelController/AppDelegate.m rename to Examples/SlidingPanelController/AppDelegate.m diff --git a/Example/SlidingPanelController/CenterViewController.h b/Examples/SlidingPanelController/CenterViewController.h similarity index 100% rename from Example/SlidingPanelController/CenterViewController.h rename to Examples/SlidingPanelController/CenterViewController.h diff --git a/Example/SlidingPanelController/CenterViewController.m b/Examples/SlidingPanelController/CenterViewController.m similarity index 100% rename from Example/SlidingPanelController/CenterViewController.m rename to Examples/SlidingPanelController/CenterViewController.m diff --git a/Example/SlidingPanelController/Color.h b/Examples/SlidingPanelController/Color.h similarity index 100% rename from Example/SlidingPanelController/Color.h rename to Examples/SlidingPanelController/Color.h diff --git a/Example/SlidingPanelController/Color.m b/Examples/SlidingPanelController/Color.m similarity index 100% rename from Example/SlidingPanelController/Color.m rename to Examples/SlidingPanelController/Color.m diff --git a/Example/SlidingPanelController/Images.xcassets/AppIcon.appiconset/Contents.json b/Examples/SlidingPanelController/Images.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from Example/SlidingPanelController/Images.xcassets/AppIcon.appiconset/Contents.json rename to Examples/SlidingPanelController/Images.xcassets/AppIcon.appiconset/Contents.json diff --git a/Example/SlidingPanelController/Images.xcassets/AppIcon.appiconset/Icon_29x29.png b/Examples/SlidingPanelController/Images.xcassets/AppIcon.appiconset/Icon_29x29.png similarity index 100% rename from Example/SlidingPanelController/Images.xcassets/AppIcon.appiconset/Icon_29x29.png rename to Examples/SlidingPanelController/Images.xcassets/AppIcon.appiconset/Icon_29x29.png diff --git a/Example/SlidingPanelController/Images.xcassets/AppIcon.appiconset/Icon_29x29@2x-1.png b/Examples/SlidingPanelController/Images.xcassets/AppIcon.appiconset/Icon_29x29@2x-1.png similarity index 100% rename from Example/SlidingPanelController/Images.xcassets/AppIcon.appiconset/Icon_29x29@2x-1.png rename to Examples/SlidingPanelController/Images.xcassets/AppIcon.appiconset/Icon_29x29@2x-1.png diff --git a/Example/SlidingPanelController/Images.xcassets/AppIcon.appiconset/Icon_29x29@2x.png b/Examples/SlidingPanelController/Images.xcassets/AppIcon.appiconset/Icon_29x29@2x.png similarity index 100% rename from Example/SlidingPanelController/Images.xcassets/AppIcon.appiconset/Icon_29x29@2x.png rename to Examples/SlidingPanelController/Images.xcassets/AppIcon.appiconset/Icon_29x29@2x.png diff --git a/Example/SlidingPanelController/Images.xcassets/AppIcon.appiconset/Icon_40x40.png b/Examples/SlidingPanelController/Images.xcassets/AppIcon.appiconset/Icon_40x40.png similarity index 100% rename from Example/SlidingPanelController/Images.xcassets/AppIcon.appiconset/Icon_40x40.png rename to Examples/SlidingPanelController/Images.xcassets/AppIcon.appiconset/Icon_40x40.png diff --git a/Example/SlidingPanelController/Images.xcassets/AppIcon.appiconset/Icon_40x40@2x-1.png b/Examples/SlidingPanelController/Images.xcassets/AppIcon.appiconset/Icon_40x40@2x-1.png similarity index 100% rename from Example/SlidingPanelController/Images.xcassets/AppIcon.appiconset/Icon_40x40@2x-1.png rename to Examples/SlidingPanelController/Images.xcassets/AppIcon.appiconset/Icon_40x40@2x-1.png diff --git a/Example/SlidingPanelController/Images.xcassets/AppIcon.appiconset/Icon_40x40@2x.png b/Examples/SlidingPanelController/Images.xcassets/AppIcon.appiconset/Icon_40x40@2x.png similarity index 100% rename from Example/SlidingPanelController/Images.xcassets/AppIcon.appiconset/Icon_40x40@2x.png rename to Examples/SlidingPanelController/Images.xcassets/AppIcon.appiconset/Icon_40x40@2x.png diff --git a/Example/SlidingPanelController/Images.xcassets/AppIcon.appiconset/Icon_60x60@2x.png b/Examples/SlidingPanelController/Images.xcassets/AppIcon.appiconset/Icon_60x60@2x.png similarity index 100% rename from Example/SlidingPanelController/Images.xcassets/AppIcon.appiconset/Icon_60x60@2x.png rename to Examples/SlidingPanelController/Images.xcassets/AppIcon.appiconset/Icon_60x60@2x.png diff --git a/Example/SlidingPanelController/Images.xcassets/AppIcon.appiconset/Icon_76x76.png b/Examples/SlidingPanelController/Images.xcassets/AppIcon.appiconset/Icon_76x76.png similarity index 100% rename from Example/SlidingPanelController/Images.xcassets/AppIcon.appiconset/Icon_76x76.png rename to Examples/SlidingPanelController/Images.xcassets/AppIcon.appiconset/Icon_76x76.png diff --git a/Example/SlidingPanelController/Images.xcassets/AppIcon.appiconset/Icon_76x76@2x.png b/Examples/SlidingPanelController/Images.xcassets/AppIcon.appiconset/Icon_76x76@2x.png similarity index 100% rename from Example/SlidingPanelController/Images.xcassets/AppIcon.appiconset/Icon_76x76@2x.png rename to Examples/SlidingPanelController/Images.xcassets/AppIcon.appiconset/Icon_76x76@2x.png diff --git a/Example/SlidingPanelController/Images.xcassets/LaunchImage.launchimage/Contents.json b/Examples/SlidingPanelController/Images.xcassets/LaunchImage.launchimage/Contents.json similarity index 100% rename from Example/SlidingPanelController/Images.xcassets/LaunchImage.launchimage/Contents.json rename to Examples/SlidingPanelController/Images.xcassets/LaunchImage.launchimage/Contents.json diff --git a/Example/SlidingPanelController/Images.xcassets/LaunchImage.launchimage/Lauch_image_iPad_landscape.png b/Examples/SlidingPanelController/Images.xcassets/LaunchImage.launchimage/Lauch_image_iPad_landscape.png similarity index 100% rename from Example/SlidingPanelController/Images.xcassets/LaunchImage.launchimage/Lauch_image_iPad_landscape.png rename to Examples/SlidingPanelController/Images.xcassets/LaunchImage.launchimage/Lauch_image_iPad_landscape.png diff --git a/Example/SlidingPanelController/Images.xcassets/LaunchImage.launchimage/Lauch_image_iPad_landscape@2x.png b/Examples/SlidingPanelController/Images.xcassets/LaunchImage.launchimage/Lauch_image_iPad_landscape@2x.png similarity index 100% rename from Example/SlidingPanelController/Images.xcassets/LaunchImage.launchimage/Lauch_image_iPad_landscape@2x.png rename to Examples/SlidingPanelController/Images.xcassets/LaunchImage.launchimage/Lauch_image_iPad_landscape@2x.png diff --git a/Example/SlidingPanelController/Images.xcassets/LaunchImage.launchimage/Lauch_image_iPad_portrait.png b/Examples/SlidingPanelController/Images.xcassets/LaunchImage.launchimage/Lauch_image_iPad_portrait.png similarity index 100% rename from Example/SlidingPanelController/Images.xcassets/LaunchImage.launchimage/Lauch_image_iPad_portrait.png rename to Examples/SlidingPanelController/Images.xcassets/LaunchImage.launchimage/Lauch_image_iPad_portrait.png diff --git a/Example/SlidingPanelController/Images.xcassets/LaunchImage.launchimage/Lauch_image_iPad_portrait@2x.png b/Examples/SlidingPanelController/Images.xcassets/LaunchImage.launchimage/Lauch_image_iPad_portrait@2x.png similarity index 100% rename from Example/SlidingPanelController/Images.xcassets/LaunchImage.launchimage/Lauch_image_iPad_portrait@2x.png rename to Examples/SlidingPanelController/Images.xcassets/LaunchImage.launchimage/Lauch_image_iPad_portrait@2x.png diff --git a/Example/SlidingPanelController/Images.xcassets/LaunchImage.launchimage/Lauch_image_iPhone_3.5.png b/Examples/SlidingPanelController/Images.xcassets/LaunchImage.launchimage/Lauch_image_iPhone_3.5.png similarity index 100% rename from Example/SlidingPanelController/Images.xcassets/LaunchImage.launchimage/Lauch_image_iPhone_3.5.png rename to Examples/SlidingPanelController/Images.xcassets/LaunchImage.launchimage/Lauch_image_iPhone_3.5.png diff --git a/Example/SlidingPanelController/Images.xcassets/LaunchImage.launchimage/Lauch_image_iPhone_4.png b/Examples/SlidingPanelController/Images.xcassets/LaunchImage.launchimage/Lauch_image_iPhone_4.png similarity index 100% rename from Example/SlidingPanelController/Images.xcassets/LaunchImage.launchimage/Lauch_image_iPhone_4.png rename to Examples/SlidingPanelController/Images.xcassets/LaunchImage.launchimage/Lauch_image_iPhone_4.png diff --git a/Example/SlidingPanelController/LeftPanelViewController.h b/Examples/SlidingPanelController/LeftPanelViewController.h similarity index 100% rename from Example/SlidingPanelController/LeftPanelViewController.h rename to Examples/SlidingPanelController/LeftPanelViewController.h diff --git a/Example/SlidingPanelController/LeftPanelViewController.m b/Examples/SlidingPanelController/LeftPanelViewController.m similarity index 100% rename from Example/SlidingPanelController/LeftPanelViewController.m rename to Examples/SlidingPanelController/LeftPanelViewController.m diff --git a/Example/SlidingPanelController/NavigationBarButton.h b/Examples/SlidingPanelController/NavigationBarButton.h similarity index 100% rename from Example/SlidingPanelController/NavigationBarButton.h rename to Examples/SlidingPanelController/NavigationBarButton.h diff --git a/Example/SlidingPanelController/NavigationBarButton.m b/Examples/SlidingPanelController/NavigationBarButton.m similarity index 100% rename from Example/SlidingPanelController/NavigationBarButton.m rename to Examples/SlidingPanelController/NavigationBarButton.m diff --git a/Example/SlidingPanelController/RightPanelViewController.h b/Examples/SlidingPanelController/RightPanelViewController.h similarity index 100% rename from Example/SlidingPanelController/RightPanelViewController.h rename to Examples/SlidingPanelController/RightPanelViewController.h diff --git a/Example/SlidingPanelController/RightPanelViewController.m b/Examples/SlidingPanelController/RightPanelViewController.m similarity index 100% rename from Example/SlidingPanelController/RightPanelViewController.m rename to Examples/SlidingPanelController/RightPanelViewController.m diff --git a/Example/SlidingPanelController/SlidingPanelController-Info.plist b/Examples/SlidingPanelController/SlidingPanelController-Info.plist similarity index 96% rename from Example/SlidingPanelController/SlidingPanelController-Info.plist rename to Examples/SlidingPanelController/SlidingPanelController-Info.plist index 055ee3c..0f458b9 100644 --- a/Example/SlidingPanelController/SlidingPanelController-Info.plist +++ b/Examples/SlidingPanelController/SlidingPanelController-Info.plist @@ -17,11 +17,11 @@ CFBundlePackageType APPL CFBundleShortVersionString - 1.1.1 + 1.1.2 CFBundleSignature ???? CFBundleVersion - 4 + 1 LSRequiresIPhoneOS UIRequiredDeviceCapabilities diff --git a/Example/SlidingPanelController/SlidingPanelController-Prefix.pch b/Examples/SlidingPanelController/SlidingPanelController-Prefix.pch similarity index 100% rename from Example/SlidingPanelController/SlidingPanelController-Prefix.pch rename to Examples/SlidingPanelController/SlidingPanelController-Prefix.pch diff --git a/Example/SlidingPanelController/TableViewItem.h b/Examples/SlidingPanelController/TableViewItem.h similarity index 100% rename from Example/SlidingPanelController/TableViewItem.h rename to Examples/SlidingPanelController/TableViewItem.h diff --git a/Example/SlidingPanelController/TableViewItem.m b/Examples/SlidingPanelController/TableViewItem.m similarity index 100% rename from Example/SlidingPanelController/TableViewItem.m rename to Examples/SlidingPanelController/TableViewItem.m diff --git a/Example/SlidingPanelController/TableViewSection.h b/Examples/SlidingPanelController/TableViewSection.h similarity index 100% rename from Example/SlidingPanelController/TableViewSection.h rename to Examples/SlidingPanelController/TableViewSection.h diff --git a/Example/SlidingPanelController/TableViewSection.m b/Examples/SlidingPanelController/TableViewSection.m similarity index 100% rename from Example/SlidingPanelController/TableViewSection.m rename to Examples/SlidingPanelController/TableViewSection.m diff --git a/Example/SlidingPanelController/en.lproj/InfoPlist.strings b/Examples/SlidingPanelController/en.lproj/InfoPlist.strings similarity index 100% rename from Example/SlidingPanelController/en.lproj/InfoPlist.strings rename to Examples/SlidingPanelController/en.lproj/InfoPlist.strings diff --git a/Example/SlidingPanelController/main.m b/Examples/SlidingPanelController/main.m similarity index 100% rename from Example/SlidingPanelController/main.m rename to Examples/SlidingPanelController/main.m diff --git a/Examples/SlidingPanelControllerStoryboard.xcodeproj/project.pbxproj b/Examples/SlidingPanelControllerStoryboard.xcodeproj/project.pbxproj new file mode 100644 index 0000000..fc6d4ab --- /dev/null +++ b/Examples/SlidingPanelControllerStoryboard.xcodeproj/project.pbxproj @@ -0,0 +1,354 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 0119237718C0B80B005EC17C /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0119237618C0B80B005EC17C /* Main.storyboard */; }; + 0119237D18C0B859005EC17C /* MSSlidingPanelController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0119237A18C0B859005EC17C /* MSSlidingPanelController.m */; }; + 0119237E18C0B859005EC17C /* MSViewControllerSlidingPanel.m in Sources */ = {isa = PBXBuildFile; fileRef = 0119237C18C0B859005EC17C /* MSViewControllerSlidingPanel.m */; }; + 0119238118C0C8EA005EC17C /* EmptySegue.m in Sources */ = {isa = PBXBuildFile; fileRef = 0119238018C0C8EA005EC17C /* EmptySegue.m */; }; + 01C133A918C0B698004E7405 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 01C133A818C0B698004E7405 /* Foundation.framework */; }; + 01C133AB18C0B698004E7405 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 01C133AA18C0B698004E7405 /* CoreGraphics.framework */; }; + 01C133AD18C0B698004E7405 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 01C133AC18C0B698004E7405 /* UIKit.framework */; }; + 01C133B318C0B698004E7405 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 01C133B118C0B698004E7405 /* InfoPlist.strings */; }; + 01C133B518C0B698004E7405 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 01C133B418C0B698004E7405 /* main.m */; }; + 01C133B918C0B698004E7405 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 01C133B818C0B698004E7405 /* AppDelegate.m */; }; + 01C133BB18C0B698004E7405 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 01C133BA18C0B698004E7405 /* Images.xcassets */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 0119237618C0B80B005EC17C /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Main.storyboard; sourceTree = ""; }; + 0119237918C0B859005EC17C /* MSSlidingPanelController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = MSSlidingPanelController.h; path = ../../MSSlidingPanelController/MSSlidingPanelController.h; sourceTree = ""; }; + 0119237A18C0B859005EC17C /* MSSlidingPanelController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = MSSlidingPanelController.m; path = ../../MSSlidingPanelController/MSSlidingPanelController.m; sourceTree = ""; }; + 0119237B18C0B859005EC17C /* MSViewControllerSlidingPanel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = MSViewControllerSlidingPanel.h; path = ../../MSSlidingPanelController/MSViewControllerSlidingPanel.h; sourceTree = ""; }; + 0119237C18C0B859005EC17C /* MSViewControllerSlidingPanel.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = MSViewControllerSlidingPanel.m; path = ../../MSSlidingPanelController/MSViewControllerSlidingPanel.m; sourceTree = ""; }; + 0119237F18C0C8EA005EC17C /* EmptySegue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EmptySegue.h; sourceTree = ""; }; + 0119238018C0C8EA005EC17C /* EmptySegue.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EmptySegue.m; sourceTree = ""; }; + 01C133A518C0B698004E7405 /* SlidingPanelControllerStoryboard.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SlidingPanelControllerStoryboard.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 01C133A818C0B698004E7405 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; + 01C133AA18C0B698004E7405 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; + 01C133AC18C0B698004E7405 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; + 01C133B018C0B698004E7405 /* SlidingPanelControllerStoryboard-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "SlidingPanelControllerStoryboard-Info.plist"; sourceTree = ""; }; + 01C133B218C0B698004E7405 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + 01C133B418C0B698004E7405 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 01C133B618C0B698004E7405 /* SlidingPanelControllerStoryboard-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "SlidingPanelControllerStoryboard-Prefix.pch"; sourceTree = ""; }; + 01C133B718C0B698004E7405 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + 01C133B818C0B698004E7405 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + 01C133BA18C0B698004E7405 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 01C133A218C0B698004E7405 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 01C133AB18C0B698004E7405 /* CoreGraphics.framework in Frameworks */, + 01C133A918C0B698004E7405 /* Foundation.framework in Frameworks */, + 01C133AD18C0B698004E7405 /* UIKit.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 0119237418C0B74E005EC17C /* Sources */ = { + isa = PBXGroup; + children = ( + 01C133B418C0B698004E7405 /* main.m */, + 01C133B718C0B698004E7405 /* AppDelegate.h */, + 01C133B818C0B698004E7405 /* AppDelegate.m */, + 0119237618C0B80B005EC17C /* Main.storyboard */, + 0119237818C0B824005EC17C /* SlidingPanelController */, + 0131406B18C0E0AD00D9E655 /* Tools */, + ); + name = Sources; + sourceTree = ""; + }; + 0119237518C0B784005EC17C /* Others */ = { + isa = PBXGroup; + children = ( + 01C133B118C0B698004E7405 /* InfoPlist.strings */, + 01C133B018C0B698004E7405 /* SlidingPanelControllerStoryboard-Info.plist */, + 01C133B618C0B698004E7405 /* SlidingPanelControllerStoryboard-Prefix.pch */, + ); + name = Others; + sourceTree = ""; + }; + 0119237818C0B824005EC17C /* SlidingPanelController */ = { + isa = PBXGroup; + children = ( + 0119237918C0B859005EC17C /* MSSlidingPanelController.h */, + 0119237A18C0B859005EC17C /* MSSlidingPanelController.m */, + 0119237B18C0B859005EC17C /* MSViewControllerSlidingPanel.h */, + 0119237C18C0B859005EC17C /* MSViewControllerSlidingPanel.m */, + ); + name = SlidingPanelController; + sourceTree = ""; + }; + 0131406B18C0E0AD00D9E655 /* Tools */ = { + isa = PBXGroup; + children = ( + 0119237F18C0C8EA005EC17C /* EmptySegue.h */, + 0119238018C0C8EA005EC17C /* EmptySegue.m */, + ); + name = Tools; + sourceTree = ""; + }; + 01C1339C18C0B698004E7405 = { + isa = PBXGroup; + children = ( + 01C133AE18C0B698004E7405 /* SlidingPanelControllerStoryboard */, + 01C133A718C0B698004E7405 /* Frameworks */, + 01C133A618C0B698004E7405 /* Products */, + ); + sourceTree = ""; + }; + 01C133A618C0B698004E7405 /* Products */ = { + isa = PBXGroup; + children = ( + 01C133A518C0B698004E7405 /* SlidingPanelControllerStoryboard.app */, + ); + name = Products; + sourceTree = ""; + }; + 01C133A718C0B698004E7405 /* Frameworks */ = { + isa = PBXGroup; + children = ( + 01C133AA18C0B698004E7405 /* CoreGraphics.framework */, + 01C133A818C0B698004E7405 /* Foundation.framework */, + 01C133AC18C0B698004E7405 /* UIKit.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 01C133AE18C0B698004E7405 /* SlidingPanelControllerStoryboard */ = { + isa = PBXGroup; + children = ( + 0119237418C0B74E005EC17C /* Sources */, + 01C133AF18C0B698004E7405 /* Resources */, + ); + path = SlidingPanelControllerStoryboard; + sourceTree = ""; + }; + 01C133AF18C0B698004E7405 /* Resources */ = { + isa = PBXGroup; + children = ( + 01C133BA18C0B698004E7405 /* Images.xcassets */, + 0119237518C0B784005EC17C /* Others */, + ); + name = Resources; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 01C133A418C0B698004E7405 /* SlidingPanelControllerStoryboard */ = { + isa = PBXNativeTarget; + buildConfigurationList = 01C133D118C0B698004E7405 /* Build configuration list for PBXNativeTarget "SlidingPanelControllerStoryboard" */; + buildPhases = ( + 01C133A118C0B698004E7405 /* Sources */, + 01C133A218C0B698004E7405 /* Frameworks */, + 01C133A318C0B698004E7405 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = SlidingPanelControllerStoryboard; + productName = SlidingPanelControllerStoryboard; + productReference = 01C133A518C0B698004E7405 /* SlidingPanelControllerStoryboard.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 01C1339D18C0B698004E7405 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0500; + ORGANIZATIONNAME = "Sébastien MICHOY"; + }; + buildConfigurationList = 01C133A018C0B698004E7405 /* Build configuration list for PBXProject "SlidingPanelControllerStoryboard" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = 01C1339C18C0B698004E7405; + productRefGroup = 01C133A618C0B698004E7405 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 01C133A418C0B698004E7405 /* SlidingPanelControllerStoryboard */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 01C133A318C0B698004E7405 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 01C133B318C0B698004E7405 /* InfoPlist.strings in Resources */, + 0119237718C0B80B005EC17C /* Main.storyboard in Resources */, + 01C133BB18C0B698004E7405 /* Images.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 01C133A118C0B698004E7405 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 0119237D18C0B859005EC17C /* MSSlidingPanelController.m in Sources */, + 0119238118C0C8EA005EC17C /* EmptySegue.m in Sources */, + 01C133B918C0B698004E7405 /* AppDelegate.m in Sources */, + 0119237E18C0B859005EC17C /* MSViewControllerSlidingPanel.m in Sources */, + 01C133B518C0B698004E7405 /* main.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 01C133B118C0B698004E7405 /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + 01C133B218C0B698004E7405 /* en */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 01C133CF18C0B698004E7405 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 7.0; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + }; + name = Debug; + }; + 01C133D018C0B698004E7405 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = YES; + ENABLE_NS_ASSERTIONS = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 7.0; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 01C133D218C0B698004E7405 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "SlidingPanelControllerStoryboard/SlidingPanelControllerStoryboard-Prefix.pch"; + INFOPLIST_FILE = "SlidingPanelControllerStoryboard/SlidingPanelControllerStoryboard-Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + WRAPPER_EXTENSION = app; + }; + name = Debug; + }; + 01C133D318C0B698004E7405 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "SlidingPanelControllerStoryboard/SlidingPanelControllerStoryboard-Prefix.pch"; + INFOPLIST_FILE = "SlidingPanelControllerStoryboard/SlidingPanelControllerStoryboard-Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + WRAPPER_EXTENSION = app; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 01C133A018C0B698004E7405 /* Build configuration list for PBXProject "SlidingPanelControllerStoryboard" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 01C133CF18C0B698004E7405 /* Debug */, + 01C133D018C0B698004E7405 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 01C133D118C0B698004E7405 /* Build configuration list for PBXNativeTarget "SlidingPanelControllerStoryboard" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 01C133D218C0B698004E7405 /* Debug */, + 01C133D318C0B698004E7405 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 01C1339D18C0B698004E7405 /* Project object */; +} diff --git a/Examples/SlidingPanelControllerStoryboard.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Examples/SlidingPanelControllerStoryboard.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..5ea7fa2 --- /dev/null +++ b/Examples/SlidingPanelControllerStoryboard.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Examples/SlidingPanelControllerStoryboard.xcodeproj/xcshareddata/xcschemes/SlidingPanelControllerStoryboard.xcscheme b/Examples/SlidingPanelControllerStoryboard.xcodeproj/xcshareddata/xcschemes/SlidingPanelControllerStoryboard.xcscheme new file mode 100644 index 0000000..39d885e --- /dev/null +++ b/Examples/SlidingPanelControllerStoryboard.xcodeproj/xcshareddata/xcschemes/SlidingPanelControllerStoryboard.xcscheme @@ -0,0 +1,104 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Examples/SlidingPanelControllerStoryboard/AppDelegate.h b/Examples/SlidingPanelControllerStoryboard/AppDelegate.h new file mode 100644 index 0000000..28db8f6 --- /dev/null +++ b/Examples/SlidingPanelControllerStoryboard/AppDelegate.h @@ -0,0 +1,15 @@ +// +// AppDelegate.h +// SlidingPanelControllerStoryboard +// +// Created by Sébastien MICHOY on 2/28/14. +// Copyright (c) 2014 Sébastien MICHOY. All rights reserved. +// + +#import + +@interface AppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; + +@end diff --git a/Examples/SlidingPanelControllerStoryboard/AppDelegate.m b/Examples/SlidingPanelControllerStoryboard/AppDelegate.m new file mode 100644 index 0000000..f5c70e3 --- /dev/null +++ b/Examples/SlidingPanelControllerStoryboard/AppDelegate.m @@ -0,0 +1,18 @@ +// +// AppDelegate.m +// SlidingPanelControllerStoryboard +// +// Created by Sébastien MICHOY on 2/28/14. +// Copyright (c) 2014 Sébastien MICHOY. All rights reserved. +// + +#import "AppDelegate.h" + +@implementation AppDelegate + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions +{ + return YES; +} + +@end diff --git a/Examples/SlidingPanelControllerStoryboard/EmptySegue.h b/Examples/SlidingPanelControllerStoryboard/EmptySegue.h new file mode 100644 index 0000000..b5f5180 --- /dev/null +++ b/Examples/SlidingPanelControllerStoryboard/EmptySegue.h @@ -0,0 +1,13 @@ +// +// EmptySegue.h +// SlidingPanelControllerStoryboard +// +// Created by Sébastien MICHOY on 2/28/14. +// Copyright (c) 2014 Sébastien MICHOY. All rights reserved. +// + +#import + +@interface EmptySegue : UIStoryboardSegue + +@end diff --git a/Examples/SlidingPanelControllerStoryboard/EmptySegue.m b/Examples/SlidingPanelControllerStoryboard/EmptySegue.m new file mode 100644 index 0000000..5e74ed3 --- /dev/null +++ b/Examples/SlidingPanelControllerStoryboard/EmptySegue.m @@ -0,0 +1,18 @@ +// +// EmptySegue.m +// SlidingPanelControllerStoryboard +// +// Created by Sébastien MICHOY on 2/28/14. +// Copyright (c) 2014 Sébastien MICHOY. All rights reserved. +// + +#import "EmptySegue.h" + +@implementation EmptySegue + +- (void)perform +{ + +} + +@end diff --git a/Examples/SlidingPanelControllerStoryboard/Images.xcassets/AppIcon.appiconset/Contents.json b/Examples/SlidingPanelControllerStoryboard/Images.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..bb83261 --- /dev/null +++ b/Examples/SlidingPanelControllerStoryboard/Images.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,26 @@ +{ + "images" : [ + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon_29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon_40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon_60x60@2x.png", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Examples/SlidingPanelControllerStoryboard/Images.xcassets/AppIcon.appiconset/Icon_29x29@2x.png b/Examples/SlidingPanelControllerStoryboard/Images.xcassets/AppIcon.appiconset/Icon_29x29@2x.png new file mode 100644 index 0000000..883f27f Binary files /dev/null and b/Examples/SlidingPanelControllerStoryboard/Images.xcassets/AppIcon.appiconset/Icon_29x29@2x.png differ diff --git a/Examples/SlidingPanelControllerStoryboard/Images.xcassets/AppIcon.appiconset/Icon_40x40@2x.png b/Examples/SlidingPanelControllerStoryboard/Images.xcassets/AppIcon.appiconset/Icon_40x40@2x.png new file mode 100644 index 0000000..f8f5a12 Binary files /dev/null and b/Examples/SlidingPanelControllerStoryboard/Images.xcassets/AppIcon.appiconset/Icon_40x40@2x.png differ diff --git a/Examples/SlidingPanelControllerStoryboard/Images.xcassets/AppIcon.appiconset/Icon_60x60@2x.png b/Examples/SlidingPanelControllerStoryboard/Images.xcassets/AppIcon.appiconset/Icon_60x60@2x.png new file mode 100644 index 0000000..93af218 Binary files /dev/null and b/Examples/SlidingPanelControllerStoryboard/Images.xcassets/AppIcon.appiconset/Icon_60x60@2x.png differ diff --git a/Examples/SlidingPanelControllerStoryboard/Images.xcassets/LaunchImage.launchimage/Contents.json b/Examples/SlidingPanelControllerStoryboard/Images.xcassets/LaunchImage.launchimage/Contents.json new file mode 100644 index 0000000..aeca06c --- /dev/null +++ b/Examples/SlidingPanelControllerStoryboard/Images.xcassets/LaunchImage.launchimage/Contents.json @@ -0,0 +1,25 @@ +{ + "images" : [ + { + "orientation" : "portrait", + "idiom" : "iphone", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "filename" : "b.png", + "scale" : "2x" + }, + { + "extent" : "full-screen", + "idiom" : "iphone", + "subtype" : "retina4", + "filename" : "a-1.png", + "minimum-system-version" : "7.0", + "orientation" : "portrait", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Examples/SlidingPanelControllerStoryboard/Images.xcassets/LaunchImage.launchimage/a-1.png b/Examples/SlidingPanelControllerStoryboard/Images.xcassets/LaunchImage.launchimage/a-1.png new file mode 100644 index 0000000..5f5fd45 Binary files /dev/null and b/Examples/SlidingPanelControllerStoryboard/Images.xcassets/LaunchImage.launchimage/a-1.png differ diff --git a/Examples/SlidingPanelControllerStoryboard/Images.xcassets/LaunchImage.launchimage/b.png b/Examples/SlidingPanelControllerStoryboard/Images.xcassets/LaunchImage.launchimage/b.png new file mode 100644 index 0000000..13955e7 Binary files /dev/null and b/Examples/SlidingPanelControllerStoryboard/Images.xcassets/LaunchImage.launchimage/b.png differ diff --git a/Examples/SlidingPanelControllerStoryboard/Main.storyboard b/Examples/SlidingPanelControllerStoryboard/Main.storyboard new file mode 100644 index 0000000..57314df --- /dev/null +++ b/Examples/SlidingPanelControllerStoryboard/Main.storyboard @@ -0,0 +1,274 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Examples/SlidingPanelControllerStoryboard/SlidingPanelControllerStoryboard-Info.plist b/Examples/SlidingPanelControllerStoryboard/SlidingPanelControllerStoryboard-Info.plist new file mode 100644 index 0000000..0dbf168 --- /dev/null +++ b/Examples/SlidingPanelControllerStoryboard/SlidingPanelControllerStoryboard-Info.plist @@ -0,0 +1,38 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + ${PRODUCT_NAME} + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIdentifier + com.michoy.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.1.2 + CFBundleSignature + ???? + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + + + diff --git a/Examples/SlidingPanelControllerStoryboard/SlidingPanelControllerStoryboard-Prefix.pch b/Examples/SlidingPanelControllerStoryboard/SlidingPanelControllerStoryboard-Prefix.pch new file mode 100644 index 0000000..743435c --- /dev/null +++ b/Examples/SlidingPanelControllerStoryboard/SlidingPanelControllerStoryboard-Prefix.pch @@ -0,0 +1,16 @@ +// +// Prefix header +// +// The contents of this file are implicitly included at the beginning of every source file. +// + +#import + +#ifndef __IPHONE_3_0 +#warning "This project uses features only available in iOS SDK 3.0 and later." +#endif + +#ifdef __OBJC__ + #import + #import +#endif diff --git a/Examples/SlidingPanelControllerStoryboard/en.lproj/InfoPlist.strings b/Examples/SlidingPanelControllerStoryboard/en.lproj/InfoPlist.strings new file mode 100644 index 0000000..477b28f --- /dev/null +++ b/Examples/SlidingPanelControllerStoryboard/en.lproj/InfoPlist.strings @@ -0,0 +1,2 @@ +/* Localized versions of Info.plist keys */ + diff --git a/Examples/SlidingPanelControllerStoryboard/main.m b/Examples/SlidingPanelControllerStoryboard/main.m new file mode 100644 index 0000000..77585d4 --- /dev/null +++ b/Examples/SlidingPanelControllerStoryboard/main.m @@ -0,0 +1,19 @@ +// +// main.m +// SlidingPanelControllerStoryboard +// +// Created by Sébastien MICHOY on 2/28/14. +// Copyright (c) 2014 Sébastien MICHOY. All rights reserved. +// + +#import + +#import "AppDelegate.h" + +int main(int argc, char * argv[]) +{ + @autoreleasepool + { + return (UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]))); + } +} diff --git a/MSSlidingPanelController.podspec b/MSSlidingPanelController.podspec index 7d05d9e..6797fd9 100644 --- a/MSSlidingPanelController.podspec +++ b/MSSlidingPanelController.podspec @@ -1,13 +1,13 @@ Pod::Spec.new do |spec| spec.name = "MSSlidingPanelController" - spec.version = "1.1.1" + spec.version = "1.1.2" spec.platform = :ios spec.ios.deployment_target = "7.0" spec.requires_arc = true spec.ios.framework = "UIKit" - spec.source = { :git => "https://github.com/SebastienMichoy/MSSlidingPanelController.git", :tag => "1.1.1" } + spec.source = { :git => "https://github.com/SebastienMichoy/MSSlidingPanelController.git", :tag => "1.1.2" } spec.source_files = 'MSSlidingPanelController/*.{h,m}' spec.public_header_files = 'MSSlidingPanelController/*.h' spec.summary = "Integrate easily a sliding panel controller mechanism in your project!" diff --git a/MSSlidingPanelController/MSSlidingPanelController.h b/MSSlidingPanelController/MSSlidingPanelController.h index 3ebc7d1..c3e7fb9 100644 --- a/MSSlidingPanelController/MSSlidingPanelController.h +++ b/MSSlidingPanelController/MSSlidingPanelController.h @@ -129,6 +129,7 @@ typedef NS_ENUM(NSUInteger, MSSPSideDisplayed) * The MSSlidingPanelController provides a class which allow to display sliding panels. * * The sliding panel controller allows to set two panels: one on the left, and one on the right. However, only one panel can be displayed at the same time. + * If you want to use the Storyboard, use custom segues with the following identifiers: MSSPStoryboardIDCenter, MSSPStoryboardIDLeft, MSSPStoryboardIDRight. */ @interface MSSlidingPanelController : UIViewController diff --git a/MSSlidingPanelController/MSSlidingPanelController.m b/MSSlidingPanelController/MSSlidingPanelController.m index 06b728b..5f0a135 100644 --- a/MSSlidingPanelController/MSSlidingPanelController.m +++ b/MSSlidingPanelController/MSSlidingPanelController.m @@ -8,6 +8,12 @@ #import "MSSlidingPanelController.h" +#pragma mark - Macros + +#define MSSPStoryboardIDCenter @"MSSPStoryboardIDCenter" +#define MSSPStoryboardIDLeft @"MSSPStoryboardIDLeft" +#define MSSPStoryboardIDRight @"MSSPStoryboardIDRight" + #pragma mark - Global variables CGFloat g_animationVelocity = 640; @@ -349,6 +355,14 @@ - (void)openPanelSide:(MSSPSideDisplayed)side withCompletion:(void (^)(void))com */ - (void)openPanelSide:(MSSPSideDisplayed)side withCompletion:(void (^)(void))completion andStatusBarColorUpdate:(BOOL)statusBarColorUpdate; +#pragma mark Storyboard +/** @name Storyboard */ + +/** + * Sets views from storyboard. + */ +- (void)setViewsFromStoryboard; + @end #pragma mark - Implementation @@ -440,6 +454,23 @@ - (id)init return (self); } +/** + * Returns an object initialized from data in a given unarchiver. + * + * @param aDecoder An unarchiver object. + * + * @return self, initialized using the data in decoder. + */ +- (id)initWithCoder:(NSCoder *)aDecoder +{ + self = [super initWithCoder:aDecoder]; + + if (self) + [self commonSettings]; + + return (self); +} + /** * Initialize and return a new sliding panel controller. * @@ -560,6 +591,9 @@ - (void)loadView windowSize = [[UIScreen mainScreen] bounds].size; + if ([self storyboard]) + [self setViewsFromStoryboard]; + [self setStatusBarView:[[UIView alloc] initWithFrame:CGRectMake(0, 0, windowSize.width, 20)]]; [[self statusBarView] setBackgroundColor:[self centerViewStatusBarColor]]; [[self statusBarView] setAutoresizingMask:(UIViewAutoresizingFlexibleWidth)]; @@ -1523,4 +1557,47 @@ - (void)openRightPanelWithCompletion:(void (^)(void))completion [self openPanelSide:MSSPSideDisplayedRight withCompletion:completion]; } +#pragma mark Storyboard +/** @name Storyboard */ + +/** + * Notifies the view controller that a segue is about to be performed. + * + * @param segue The segue object containing information about the view controllers involved in the segue. + * @param sender The object that initiated the segue. You might use this parameter to perform different actions based on which control (or other object) initiated the segue. + */ +- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender +{ + if ([segue.identifier isEqualToString:MSSPStoryboardIDCenter]) + [self setCenterViewController:[segue destinationViewController]]; + else if ([segue.identifier isEqualToString:MSSPStoryboardIDLeft]) + [self setLeftPanelController:[segue destinationViewController]]; + else if ([segue.identifier isEqualToString:MSSPStoryboardIDRight]) + [self setRightPanelController:[segue destinationViewController]]; +} + +/** + * Sets views from storyboard. + */ +- (void)setViewsFromStoryboard +{ + @try + { + [self performSegueWithIdentifier:MSSPStoryboardIDCenter sender:nil]; + } + @catch (NSException *exception){} + + @try + { + [self performSegueWithIdentifier:MSSPStoryboardIDLeft sender:nil]; + } + @catch (NSException *exception){} + + @try + { + [self performSegueWithIdentifier:MSSPStoryboardIDRight sender:nil]; + } + @catch (NSException *exception){} +} + @end \ No newline at end of file diff --git a/README.md b/README.md index acee487..ac07a54 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ pod 'MSSlidingPanelController' ``` ## Documentation -The documentation of `MSSlidingPanelController` can be found on [CocoaDoc](http://cocoadocs.org/docsets/MSSlidingPanelController/1.0.0/). +The documentation of `MSSlidingPanelController` can be found on [CocoaDoc](http://cocoadocs.org/docsets/MSSlidingPanelController/). ## Creating a MSSlidingPanelController That's very easy to create a `MSSlidingPanelController`. Only write this few lines *et voila*! @@ -85,8 +85,10 @@ slidingPanelController = [[MSSlidingPanelController alloc] initWithCenterViewCon leftPanelController:leftPanelController andRightPanelController:rightPanelController]; ``` +You can also create it by using *Storyboard*. Take a look at the examples to see how it works ! + ## Credit -The library and the example are developed and designed by [Sébastien MICHOY](http://www.linkedin.com/in/sebastienmichoy). +The library and the examples are developed and designed by [Sébastien MICHOY](http://www.linkedin.com/in/sebastienmichoy). ## Feedback If you find a bug, feel free to create Github issues!