aguynamedloren / ios-picker-dialog Goto Github PK
View Code? Open in Web Editor NEWA pretty picker dialog for iOS in Swift
License: MIT License
A pretty picker dialog for iOS in Swift
License: MIT License
Please update to provide swift 4
Hi there,
I get the following exception when changing to orientation of my phone:
PickerDialog deviceOrientationDidChange:]: unrecognized selector sent to instance 0x7fea80f52140
Any suggestions?
Hey,
Thank you for creating this utility, it's quite neat.
I encountered an error while trying it out.
In your file, you have made use of the UIColor with the following constructor
UIColor(hex: intValueHere)
However that is not a valid overload(it's not in UIKit), so I assume you where using some kind of extension. I managed to patch it up for my use by adding the following extension.
extension UIColor {
convenience init(hex: Int, alpha: Float = 1.0){
let r = Float((hex >> 16) & 0xFF)
let g = Float((hex >> 8) & 0xFF)
let b = Float((hex) & 0xFF)
self.init(red: CGFloat(r / 255.0), green: CGFloat(g / 255.0), blue:CGFloat(b / 255.0), alpha: CGFloat(alpha))
}
}
I am doing something wrong and xcode was throwing erros on the original code? I am new to the whole OSX/iOS ecosystem, so I am not quite familiar with the standard libraries
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.