AVPickerDimView is a simple class combination of UIView, UIActionSheet, and UIPickerView.
There are 3 ways to download and import the files to your project:
- Using git subtree (recommended)
git subtree add --prefix=AVPickerDimView --squash https://github.com/anjerodesu/AVPickerDimView.git master
- Using git submodule
git submodule add https://github.com/anjerodesu/AVPickerDimView.git AVPickerDimView
- Download as zip
- Download the file: AVPickerDimView Project Page on GitHub
- Unzip the folder and put it inside your project with the .xcodeproj file
After downloading and importing the files to your project folder, your next step is setting it up:
- Drag and drop AVPickerDimView-Demo.xcodeproj to your project (either root or under the Frameworks group)
- Project configuration:
- Build Phases:
- Add AVPickerDimView as a Target Dependency
- Add libAVPickerDimView.a in the Link Binaries With Library
- Build Settings:
- Locate User Header Search Paths and add ${PROJECT_DIR}/AVPickerDimView and choose recursive.
- Locate Always Search User Paths and set it to YES.
- Locate Other Linker Flags and add the value
-ObjC.
- Build Phases:
- Import the library to your project using
#import <AVPickerDimView/AVPickerKit.h>
AVPickerDimView *pickerDimView = [[AVPickerDimView alloc] initWithFrame: self.view.bounds];
pickerDimView.dataSource = self;
pickerDimView.delegate = self;
[self.view addSubview: pickerDimView];
[pickerDimView isAVPickerPresent]
if ( [pickerDimView isAVPickerPresent] )
{
[pickerDimView hideAVPickerDimView];
}
else
{
[pickerDimView showAVPickerDimView];
}
AVPickerDimView is available under the MIT license.

