HLLDropDownQuickView 0.1

HLLDropDownQuickView 0.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Unclaimed.


Downloads

Total22
Week0
Month0

Installs

Apps8
Test Targets2
powered by Segment

GitHub

Stars3
Watchers1
Forks0
Issues0
Contributors1
Pull Requests0

Code

Files2
LOCLines of Code 219


  • By
  • could_hll

DropDown List View

  • One click to select.
  • Animation: drop down & high light
  • Can control select action using delegate.
  • HLLDropDownQuickView extends UIView.

Installation

Manually

Important note if your project doesn't use ARC: you must add the -fobjc-arc compiler flag to HLLDropDownQuickView.m in Target Settings > Build Phases > Compile Sources.

  • Drag the HLLDropDownQuickView folder into your project.
  • Import HLLDropDownQuickView.h

Usage

(see sample Xcode project in /HLLDropDownQuickViewDemo)

Setting Data

[dropDownQuickView setSelectionOptions:options withTitles:titles];

Custom Style

For exmaple:setting combo style with bold and oblique

dropDownQuickView.titleBackgroundImage=[UIImage imageNamed:@"title_background"];
dropDownQuickView.titleFont=[UIFont systemFontOfSize:9];
dropDownQuickView.titleColor=[UIColor redColor];
CGRect frame=dropDownQuickView.titleLabel.frame;
dropDownQuickView.titleLabel.frame=CGRectMake(10, frame.origin.y, frame.size.width, frame.size.height);
dropDownQuickView.optionBackgroundImage=[UIImage imageNamed:@"option_background"];
dropDownQuickView.optionFont=[UIFont systemFontOfSize:9];
dropDownQuickView.optionColor=[UIColor brownColor];
dropDownQuickView.title = @"USD";

Control Select

use HLLDropDownQuickViewDelegate

@protocol HLLDropDownQuickViewDelegate <NSObject>

// Selection contains the user selected option or nil if nothing was selected
- (void)dropDownControlView:(HLLDropDownQuickView *)view didFinishWithSelection:(id)selection;

@optional

// You can use this to disable scrolling on a tableView
- (void)dropDownControlViewWillBecomeActive:(HLLDropDownQuickView *)view;

@end