gazolla / colorpopover Goto Github PK
View Code? Open in Web Editor NEWA ColorPopover is a very simple component for iPhone/iPad that provides a "Popover" color picker.
A ColorPopover is a very simple component for iPhone/iPad that provides a "Popover" color picker.
Hi, thanks for the colorPopover code. I've downloaded the source and loaded the demo project in Xcode 4.3. I tried running on the iPhone 5.1 simulator, but it crashes immediately. Also same problem running on the iPad simulator.
I get several warnings when building. For example:
AppDelegate.m warnings...
Property 'window' requires method 'window' to be defined - use @synthesize, @dynamic or provide a method implementation in this class implementation
Property 'window' requires method 'setWindow:' to be defined - use @synthesize, @dynamic or provide a method implementation in this class implementation
Property 'viewController' requires method 'viewController' to be defined - use @synthesize, @dynamic or provide a method implementation in this class implementation
Property 'viewController' requires method 'setViewController:' to be defined - use @synthesize, @dynamic or provide a method implementation in this class implementation
Any help would be greatly appreciated. Thanks
I have been using this in my project (6.0, 6.1) without any issues. Can't get it to work on IOS 7. Any suggestions?
Thanks.
Curtis
We've added this functionality to a live iOS app, and we're getting crash logs in the ColorViewController.m file.
Here's the symbolicated crash reason: __39-[ColorViewController loadColorButtons]_block_invoke_0 (ColorViewController.m:129)
Here is the crashed thread:
0 UIKit 0x37307a22 -[UIView(CALayerDelegate) actionForLayer:forKey:] + 138 + 137
1 QuartzCore 0x38fdfff7 -[CALayer actionForKey:] + 75 + 74
2 QuartzCore 0x38fdffa7 _ZL12actionForKeyP7CALayerPN2CA11TransactionEP8NSString + 59 + 58
3 QuartzCore 0x38fdfe93 _ZN2CA5Layer12begin_changeEPNS_11TransactionEjRP11objc_object + 131 + 130
4 QuartzCore 0x38fdab87 _ZN2CA5Layer6setterEj12_CAValueTypePKv + 183 + 182
5 QuartzCore 0x39007057 -[CALayer setBackgroundColor:] + 35 + 34
6 UIKit 0x3731ef51 -[UIView(Internal) _setBackgroundCGColor:withSystemColorName:] + 1021 + 1020
7 Pass Scan 0x000a301d __39-[ColorViewController loadColorButtons]_block_invoke_0 (ColorViewController.m:129)
8 libdispatch.dylib 0x3962511f _dispatch_call_block_and_release + 11 + 10
9 libdispatch.dylib 0x39628ecf _dispatch_queue_drain$VARIANT$mp + 143 + 142
10 libdispatch.dylib 0x39628dc1 _dispatch_queue_invoke$VARIANT$mp + 41 + 40
11 libdispatch.dylib 0x3962991d _dispatch_root_queue_drain + 185 + 184
12 libdispatch.dylib 0x39629ac1 _dispatch_worker_thread2 + 85 + 84
13 libsystem_c.dylib 0x3824da11 _pthread_wqthread + 361 + 360
Any ideas on why this is happening? Could it be a memory allocation issue?
Feels a little wonky... That said, otherwise, I think this is beautiful! Very well done!
Just was curious if there was any particular reason for having two folders that are almost the same but not quite. I used the one inside your project to get it to work.
Didn't run into any other problems other than switching what group of files I was using.
When I instantiate the popover and after that I load a UIImagePickerController, the camera looks black for about 30 seconds or more.
I've made some changes on code (method loadColorButtons )which makes it work:
instead of using myQueue
dispatch_queue_t myQueue = dispatch_queue_create("com.gazapps.myqueue", 0);
I am using
dispatch_async(dispatch_get_main_queue(), ^{...
In the same method, in the loop, instead of starting another queue, I replaced with this:
//dispatch_sync(dispatch_get_main_queue(), ^{
[self.buttonCollection addObject:colorButton];
[scroll addSubview:colorButton];
//});//end block
It works just fine.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.