dinhquan / dqalertview Goto Github PK
View Code? Open in Web Editor NEWThe best iOS customizable AlertView
License: MIT License
The best iOS customizable AlertView
License: MIT License
Touch every row of the cell in the demo project but the view shows up for only a very shot time. Xcode version:6.4
if have not setupViews method in setCustomFrame method , the cancel button or otherButton can not rechange the frame when setCustomFrame method will be call
This hampers this repo from being universally used as a replacement for UIAlertView it if depends on being shown from a UIViewController.
Not support long title. The re is no setting for multilines title and line break mode
there is no provision for adding more than 2 buttons .
hi, I found that in iOS 8.x, when touch the blackOpaqueView to dismiss the alertView, it crashed.
I finally found that in - (void)dismiss method, the last else if remove self from superView, and then access the blackOpaqueView property by self.blackOpaqueView.That leads to BAD_ACCESS.
I fixed it by moving remove subviews code before self remove from superView.
code before: crash
(void)dismiss {
...
else if (self.disappearAnimationType == DQAlertViewAnimationTypeNone)
{
[self removeFromSuperview];
}
if (self.blackOpaqueView) {
[UIView animateWithDuration:timeDisappear animations:^{
self.blackOpaqueView.alpha = 0;
} completion:^(BOOL finished) {
[self.blackOpaqueView removeFromSuperview];
}];
}
}
code after: ok
(void)dismiss {
if (self.blackOpaqueView) {
[UIView animateWithDuration:timeDisappear animations:^{
self.blackOpaqueView.alpha = 0;
} completion:^(BOOL finished) {
[self.blackOpaqueView removeFromSuperview];
}];
}
...
else if (self.disappearAnimationType == DQAlertViewAnimationTypeNone)
{
[self removeFromSuperview];
}
}
why use strong ? maybe the object cannot be released?
// Delegate
@Property (nonatomic, strong) id delegate;
Hey, nice library you got here~
But I am facing a small problem, while using ipad2 in landscape mode, the alert is showing in portrait mode
When I rotate ipad to portrait mode, alert stays same in portrait mode.
Any clue why this might be happening ?
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.