FlatUI 0.1.0

FlatUI 0.1.0

TestsTested
LangLanguage Obj-CObjective C
License Apache 2
ReleasedLast Release Dec 2014

Maintained by Unclaimed.


Downloads

Total50
Week0
Month0

Installs

Apps2
powered by Segment

FlatUI 0.1.0

  • By
  • Dalton

FlatUIKit

A collection of custom draw controls inspired by the Flat theme. Built off UICustomizeKit.

Examples

Button

FTButton *button = [FTButton buttonWithColor:[UIColor alizarinColor] raised:NO];
[button setTitle:@"Button" forState:UIControlStateNormal];
button.frame = CGRectMake(left, top+6, 80, 40);
[self.view addSubview:button];
top += button.frame.size.height+6;

button = [FTButton buttonWithColor:[UIColor alizarinColor] raised:YES];
[button setTitle:@"Button" forState:UIControlStateNormal];
button.frame = CGRectMake(left, top+6, 80, 40);
[self.view addSubview:button];

ProgessView

FTProgressView *view = [FTProgressView progressViewWithColor:[UIColor alizarinColor]];
[view setProgress:0.75];
view.frame = CGRectMake(12, 86, 150, 30);
[self.view addSubview:view];

SliderView

FTSlider *view = [FTSlider sliderWithColor:[UIColor alizarinColor]];
view.frame = CGRectMake(12, 86, 150, 30);
[self.view addSubview:view];

SwitchView

FTSwitch *view = [FTSwitch switchWithColor:[UIColor alizarinColor]];
view.onBackgroundColor = [UIColor midnightBlueColor];
view.frame = CGRectMake(12, 86, 70, 30);
[self.view addSubview:view];

ActivityView

FTActivityView *view = [FTActivityView activityViewWithColor:[UIColor alizarinColor]];
view.frame = CGRectMake(20, 86, 40, 40);
[self.view addSubview:view];
[view startAnimating];

RadialProgressView

FTRadialProgressView *view = [FTRadialProgressView progressViewWithColor:[UIColor alizarinColor]];
view.frame = CGRectMake(20, 86, 40, 40);;
[view setProgress:0.8 animated:YES];
[self.view addSubview:view];

Requirements/Dependencies

Requires UICustomizeKit. That repo can be found here:

https://github.com/daltoniam/UICustomizeKit

Install

The recommended approach for installing FlatUIKit is via the CocoaPods package manager, as it provides flexible dependency management and dead simple installation.

via CocoaPods

Install CocoaPods if not already available:

$ [sudo] gem install cocoapods
$ pod setup

Change to the directory of your Xcode project, and Create and Edit your Podfile and add RestKit:

$ cd /path/to/MyProject
$ touch Podfile
$ edit Podfile
platform :ios, '5.0' 
pod 'FlatUI'

Install into your project:

$ pod install

Open your project in Xcode from the .xcworkspace file (not the usual project file)

License

FlatUIKit is license under the Apache License.

Contact

Dalton Cherry