mtonio91 / amsmoothalert Goto Github PK
View Code? Open in Web Editor NEWCool AlertView
License: MIT License
Cool AlertView
License: MIT License
How can i use this component in landscape mode?
It has always been showed in portrait mode.
"Easy to use !
AMSmoothAlertView *alert = [[AMSmoothAlertView alloc]initWithTitle:@"Congrats !"
andText:@"You've just displayed this awesome alert view !"
forAlertType:AlertSuccess];"
generates the error:
"No visible @interface for 'AMSmoothAlertView' declares the selector 'initWithTitle:andText:forAlertType:'"
Would it be possible for your to add a pod spec to this?
I am trying to integrate that library into my project but at anytime I call this function, it crash my app
AMSmoothAlertView *ale = [[AMSmoothAlertView alloc]initFadeAlertWithTitle:NSLocalizedString(@"Database Error", nil) andText:NSLocalizedString(@"Database is not created normally", nil) andCancelButton:YES forAlertType:AlertFailure];
[ale show];
----------------------------Log--------------------------------
*** Assertion failure in -[GPUImagePicture initWithCGImage:smoothlyScaleOutput:], /Pods/GPUImage/framework/Source/iOS/GPUImagePicture.m:74
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Passed image must not be empty - it should be at least 1px tall and wide'
*** First throw call stack:
(
0 CoreFoundation 0x02e5d1e4 exceptionPreprocess + 180
1 libobjc.A.dylib 0x02bdc8e5 objc_exception_throw + 44
2 CoreFoundation 0x02e5d048 +[NSException raise:format:arguments:] + 136
3 Foundation 0x0085e4de -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 116
0x000c7a40 -[GPUImagePicture initWithCGImage:smoothlyScaleOutput:] + 624
0x000c766a -[GPUImagePicture initWithCGImage:] + 90
0x000c4f46 -[GPUImageOutput newCGImageByFilteringCGImage:] + 102
0x000c5288 -[GPUImageOutput imageByFilteringImage:] + 120
0x00068b66 -[AMSmoothAlertView performScreenshotAndBlur] + 102
0x000687c1 -[AMSmoothAlertView alertPopupView] + 1249
0x000681a5 -[AMSmoothAlertView _initViewWithTitle:andText:andCancelButton:forAlertType:andColor:] + 837
0x000675c4 -[AMSmoothAlertView initFadeAlertWithTitle:andText:andCancelButton:forAlertType:andColor:] + 340
0x000673f8 -[AMSmoothAlertView initFadeAlertWithTitle:andText:andCancelButton:forAlertType:] + 200
0x0001e0c5 -[AppDelegate application:didFinishLaunchingWithOptions:] + 821
14 UIKit 0x010ce14f -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 309
15 UIKit 0x010ceaa1 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1810
16 UIKit 0x010d3667 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 824
17 UIKit 0x010e7f92 -[UIApplication handleEvent:withNewEvent:] + 3517
18 UIKit 0x010e8555 -[UIApplication sendEvent:] + 85
19 UIKit 0x010d5250 _UIApplicationHandleEvent + 683
20 GraphicsServices 0x04262f02 _PurpleEventCallback + 776
21 GraphicsServices 0x04262a0d PurpleEventCallback + 46
22 CoreFoundation 0x02dd8ca5 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION + 53
23 CoreFoundation 0x02dd89db __CFRunLoopDoSource1 + 523
24 CoreFoundation 0x02e0368c __CFRunLoopRun + 2156
25 CoreFoundation 0x02e029d3 CFRunLoopRunSpecific + 467
26 CoreFoundation 0x02e027eb CFRunLoopRunInMode + 123
27 UIKit 0x010d2d9c -[UIApplication _run] + 840
28 UIKit 0x010d4f9b UIApplicationMain + 1225
0x0002379d main + 141
30 libdyld.dylib 0x033c9701 start + 1
)
Sorry for the long log but it is the problem. Please suggest me how to fix
Hi,
This library looks really cool!
However, I have a small request for you. Would it be possible to have an option (e.g. another method to call) to have the popup automatically dismiss after some time instead of clicking on the button?
Thanks,
Cheers
Why in cocoapodspec you've added GPUImage framework if you have previously marked it as dependency, and resolving this dependency leads to downloading source of GPUImage, not framework.
Undefined symbols for architecture arm64:
"OBJC_CLASS$_GPUImageiOSBlurFilter", referenced from:
objc-class-ref in AMSmoothAlertView.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I just tried it with the newest GPUImage framework and it works except the check mark doesn't appear after the alert drops. Tested on my 5s. Maybe just need to update the framework? Or are there other issues I'm not familiar with?
[!] Unable to read the license file [pathTo]/Pods/AMSmoothAlert/LICENSE
for the spec AMSmoothAlert (1.0)
Can you fix this? It seems that tag points to a commit that does not have the LICENSE file.
Thank you in advance,
Carmen
Did you plan on adding delegates in place of ones like
-(void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex;
? Thx!
Hi Guys
I'm just wondeing if we going to have swift version for this beautiful library.
Thanks
HI I am working with This Lib. before this it is working fine. Now i am facing one issue regarding versions. I just update my iphone to 9.3.1 when i debug i am getting below error
Undefined symbols for architecture arm64: "_OBJC_CLASS_$_GPUImageiOSBlurFilter", referenced from: objc-class-ref in AMSmoothAlertView.o ld: symbol(s) not found for architecture arm64
It is working fine in Ios 9.2
How to resolve This please help me.
comes in from the top and sideways of course. Any places I can start looking to fix that?
Also I added a dismiss delegate.
not sure if this is what you intended, but when I have the alert come up while a keyboard is onscreen, the background will blur, but the keyboard doesn't
Undefined symbols for architecture arm64:
"OBJC_CLASS$_GPUImageiOSBlurFilter", referenced from:
objc-class-ref in AMSmoothAlertView.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
This is really cool library, but it will be better if we can embed textfield or a custom view inside it
Hope this lib can be done with this feature in near future
Maybe an auto-fit feature like UIAlertView?
In iOS 8 Beta 3 the alert opens very slow on the a real device (ip5s)
Don't use it. None of this repo works anymore. It's full of errors.
This is an alternative to NOT using GPUImage Framework, this function can capture a screenshot and place the blur effect.
I added a "AMSmoothAlertView.m" this function to return the image with the effect.
#import "UIImage+ImageEffects.h"
-(UIImage *)blurredSnapshot
{
// Create the image context
UIGraphicsBeginImageContextWithOptions(self.bounds.size, NO, self.window.screen.scale);
// There he is! The new API method
[self drawViewHierarchyInRect:self.frame afterScreenUpdates:NO];
// Get the snapshot
UIImage *snapshotImage = UIGraphicsGetImageFromCurrentImageContext();
// Now apply the blur effect using Apple's UIImageEffect category
UIImage *blurredSnapshotImage = [snapshotImage applyDarkEffect];
//applyLightEffect
// Or apply any other effects available in "UIImage+ImageEffects.h"
// UIImage *blurredSnapshotImage = [snapshotImage applyDarkEffect];
// UIImage *blurredSnapshotImage = [snapshotImage applyExtraLightEffect];
// Be nice and clean your mess up
UIGraphicsEndImageContext();
return blurredSnapshotImage;
}
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.