You can install PKRevealController either using CocoaPods or the static library. Please note, that the CocoaPods version will always be the most stable, whilst the static library will include the most recent changes, bug fixes and features.
Simply add pod 'PKRevealController'
to your Podfile, execute a pod update
and #import <PKRevealController/PKRevealController.h>
.
-
Add the repository as a submodule.
git submodule add https://github.com/pkluz/PKRevealController.git
-
Drag and drop
Source/PKRevealController.xcodeproj
into your project or workspace. -
In your project settings, link against
libPKRevealController.a
. -
In your project build settings, add
-ObjC
to yourOther Linker Flags
. -
Add the contents of the
Headers/
directory into your project (Note: Make sure to uncheck 'Copy items into destination…' and check your project's target). -
#import "PKRevealController.h"
wherever you require it or just once in your project's .pch file.