Coder Social home page Coder Social logo

amsmoothalert's People

Contributors

evliu avatar liaojinxing avatar mtonio91 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

amsmoothalert's Issues

In IOS 9.3.1 arm 64 error?

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.

Demo run 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
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Compile error on iOS 8 device

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)

Landscape

How can i use this component in landscape mode?

It has always been showed in portrait mode.

Landscape support?

comes in from the top and sideways of course. Any places I can start looking to fix that?

Also I added a dismiss delegate.

Alternative without GPUImage Framework

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;
}

Crash Issue

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

README needs updating...

"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:'"

swift version

Hi Guys
I'm just wondeing if we going to have swift version for this beautiful library.

Thanks

Cocoapods GPUImage

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.

Show message by half - IOS 8.4 / Iphone 5S

screen shot 2015-07-13 at 12 12 38

The code is...

AMSmoothAlertView *alert_ = [[AMSmoothAlertView alloc]initFadeAlertWithTitle:@"Sorry !" andText:@"You've just displayed this awesome alert view !" andCancelButton:NO forAlertType:AlertFailure];
                 [alert_ show];

Whats can I do ?

add input text or custom view

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

Pod install warning/error

[!] 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

Cocoapods?

Would it be possible for your to add a pod spec to this?

background blur excludes keyboards

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

Auto dismiss

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

GPUImage.framework

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?

Planned delegates

Did you plan on adding delegates in place of ones like
-(void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex;? Thx!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.