CocoaPods
CocoaPods automates 3rd party dependencies in Objective-C.
Install the ruby gem.
$ sudo gem install cocoapods
$ pod setup
Depending on your Ruby installation, you may not have to run as sudo to install the cocoapods gem. Create a Podfile. You must be running on iOS 5 or above.
platform :ios, '5.0'
pod 'KxMenu', '1'
Install dependencies.
$ pod install
When using CocoaPods, you must open the .xcworkspace file instead of the project file when building your project.
- Drop files from KxMenu/Source folder in your project.
Sample code:
[KxMenu showMenuInView:self.view
fromRect:sender.frame
menuItems:@[
[KxMenuItem menuItem:@"Title"
image:[UIImage imageNamed:@"image"]
target:self
action:@selector(menuItemAction:)],
]];
Look at KxMenuExample demo project as sample of using.
at least iOS 5.0 and Xcode 4.5.0
Tweet me — @kolyvan_ru.