• Stars
    star
    164
  • Rank 230,032 (Top 5 %)
  • Language
    Objective-C
  • Created about 12 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A ColorPopover is a very simple component for iPhone/iPad that provides a "Popover" color picker.

#ColorPopover

A ColorPopover is a very simple component for iPhone/iPad that provides a "Popover" color picker.

Youtube video: http://youtu.be/cIc2_QJgXu8

##Supported Platforms

  • iOS 5+

##Installing

In order to install ColorPopover, you'll need to copy the ColorPopover folder into your Xcode project.

###Usage

In order to use ColorPopover, you'll need to include the following code in your project:

if (!self.wePopoverController) {
	
	ColorViewController *contentViewController = [[ColorViewController alloc] init];
    contentViewController.delegate = self;
	self.wePopoverController = [[WEPopoverController alloc] initWithContentViewController:contentViewController];
	self.wePopoverController.delegate = self;
	self.wePopoverController.passthroughViews = [NSArray arrayWithObject:self.navigationController.navigationBar];
	
	[self.wePopoverController presentPopoverFromRect:btn.frame
                                            inView:self.view
                          permittedArrowDirections:(UIPopoverArrowDirectionUp|UIPopoverArrowDirectionDown)
                                          animated:YES];
    
} else {
	[self.wePopoverController dismissPopoverAnimated:YES];
	self.wePopoverController = nil;
}

You will want to implement the method colorPopoverControllerDidSelectColor:(NSString *)hexColor from ColorViewControllerDelegate to get the result color selected. To use the color selected you should call the colorFromHex:(NSString *)hexColor as the follow example:

self.view.backgroundColor = [GzColors colorFromHex:hexColor];

##Credits & Contributors

ColorPopover was written by Sebastian Gazolla Jr.

ColorPopover based on WEPopover Created by Werner Altewischer:

##License

ColorPopover is licensed under the MIT license, which is reproduced in its entirety here:

Copyright (c) 2012 Sebastian Gazolla Jr

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Bitdeli Badge

More Repositories

1

Kotlin-Algorithm

Algorithms and data structures in kotlin
Kotlin
477
star
2

MapTable-Swift

Mimic Find My Friends first screen behavior
Swift
68
star
3

GzCountryTableView

A GzCountryTableView is a UITableView preload with appStore Countries and flags. The objective of this is to provide a way to pick one country from a list with a search mechanism.
Objective-C
28
star
4

TableForm

Programmatically use of TableView to create data entry forms for iOS
Swift
27
star
5

UICollectionView-Swift

UICollectionView programmatically implemented using Swift programming language
Swift
20
star
6

GetCurrency

List all currencies available in NSLocale programmatically using swift 3
Swift
19
star
7

HeartMonitor

Heart Rate Monitor sample written in Swift 3 using Core Bluetooth
Swift
13
star
8

Photo2Cartoon

Very simple app that uses CoreML model to transform image to anime style image.
Swift
11
star
9

JsonTableViewSwift

How to load JSON data from iTunes to a TableView programmatically using Swift 2
Swift
7
star
10

CitySearch-SwiftUI

Using MapKit's CLGeocoder() to search cities
Swift
4
star
11

SwiftUI4

What's New In SwiftUI for iOS 16 - Xcode 14 - SwiftUI 4.0
Swift
4
star
12

WallApp

This is an iPhone/iPad app that generates a mosaic with icons of the top 100 apps in appStore
Objective-C
3
star
13

AsyncImageTest

test of AsynchronousUIImage class
Objective-C
2
star
14

workshopSpring

1
star
15

GetCurrency-SwiftUI

List all currencies available in NSLocale programmatically using swiftUI
Swift
1
star
16

ViewAnimation-Swift

Swift
1
star
17

blu

code test for Bluno Arduino With Bluetooth Low Energy (BLE)
Objective-C
1
star
18

GzColor

One class to give you more colors options
Objective-C
1
star
19

OpenWeatherApp

iOS app using OpenWeather API to fetch weather from cities(using MapKit's CLGeocoder()).
Swift
1
star