okmr-d / doalertcontroller Goto Github PK
View Code? Open in Web Editor NEWSimple Alert View written in Swift, which can be used as a UIAlertController. (AlertController/AlertView/ActionSheet)
License: MIT License
Simple Alert View written in Swift, which can be used as a UIAlertController. (AlertController/AlertView/ActionSheet)
License: MIT License
I'm trying to change a buttons title after it get's initialized.
UIViewControllerTransitioningDelegateを実装する
Awesome library. Please keep it up to date for the latest version.
let error: NSError?
NSException.raise("NSInternalInconsistencyException", format:"DOAlertController can only have one action with a style of DOAlertActionStyleCancel", arguments:getVaList([error ?? "nil"]))
→ DOAlertController.swift:714:189: Constant 'error' used before being initialized
Please fix it, thank you
swift 2 version.
色を自由にカスタマイズできるように修正する
Very good job, keep it up, just one request, is it possible to make the rectangle (pop up message) with a round corner?
I am trying to present a second alert after presenting one already, but it seems that the action doesn't get called. Is there something wrong with the class, or am I missing something?
画面からはみ出す場合、スクロール可能にする
Autolayout対応する
iOS7対応
It's a nice and easy library for alert controller.
However, I have a question.
In my program, as I press the button, I want to show another view controller. So I use "performSegue" to do that. It works on UIAlertController.
When I change to DOAlertController, the view didn't show up, but the code which I write in that view controller still appear in log. (It still prints what I want to show).
The error message is:
Warning: Attempt to present <XXX.AnotherViewController: 0x101933400> on <DOAlertController: 0x101928a00> whose view is not in the window hierarchy!
I'm wondering if somebody can give me some directions, thanks a lot. :-)
ActionSheet追加
The repo is outdated now, Can you please accept the pull requests or provide an up-to-date version?
Thank you for your time and effort
AlertViewにテキストボックス追加
Is it possible to touch outside the box and the alert to dismiss at this poit?
actionのenableのtrue/falseを切り替えたときにbuttonのenableも切り替わるよう対応する
its an awesome library but can you update it to swift 4? its very bad that we manually need to fix the errors and then when we do pod install or update to get another library we lose every change.
thanks!
Actionが3つ以上設定された時に、キャンセルボタンを最下部に配置するよう修正する
ActionSheetでCancelボタンがある場合、OverlayViewのタップで閉じるようにする
When using the control source as a popover control (or page sheet view) (on ipad), the location of the presented alert is not centered
this is a picture showing the problem: https://ibb.co/fR2RKS
it'd be cool to have a swift 3 version, if you have any interest to create a branch i would like to help with that.
Hi,
Just wondering how to make textfield as first responder?
Cheers
ActionSheetの表示/非表示アニメーションを追加
The alert seems to ignore supportedInterfaceOrientations, meaning that view controllers that are locked to Landscape can rotate to Portrait when the alert is shown. Very annoying problem.
I have an array of 5, cancelButtonTag is 6, hence fatal error: Array index out of range
// Handle ContainerView tap gesture
func handleContainerViewTapGesture(sender: AnyObject) {
// cancel action
let action = actions[cancelButtonTag] as! DOAlertAction
if (action.handler != nil) {
action.handler(action)
}
self.dismissViewControllerAnimated(true, completion: nil)
}
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.