daria-kopaliani / daalertcontroller Goto Github PK
View Code? Open in Web Editor NEWDAAlertController is pretty much a UIAlertController for both iOS 8 and 7.
License: MIT License
DAAlertController is pretty much a UIAlertController for both iOS 8 and 7.
License: MIT License
Hi Daria,
congrats on this very useful component ! I'd like to have one of the textField.text
send back to
DAAlertAction *signUpAction = [DAAlertAction actionWithTitle:@"Ok" style:DAAlertActionStyleDefault handlerWithResponse:^(NSDictionary *response) {
DLog(@"response %@",response);
}];
where response is a dictionary with @{@"1":@"value of textField number 1"} etc....
In your code DAAlertController.m there is
if (action.handler) {
action.handler();
}
to which I can add
if (action.handlerWithResponse) {
UITextField* tf = <get TextField number one>
action.handlerWithResponse(@{@"1":tf.text});
}
My question to you is: Where do I get to find the textField attributes in DAAlertController.m ?
thank you !
It would be awesome if I could add views, like a picker to DAlertController.
You don't seem to be able to define and the show, which may have allowed for addSubview.
Any workarounds ?
Thanks in advance
Jules.
I was looking for a replacement for the uialertview with three buttons, ok, forgot and cancel, be nice to see a screenshot with more buttons and a uitextfield, maybe example code showing how to access the text value too.
Is is possible to support iOS 6 ? It seems that nothing prevents the use of this library with iOS6.
Thanks.
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.