vibrazy / letterpressexplosion Goto Github PK
View Code? Open in Web Editor NEWLetterpress Explosion Animation - iPhone
License: MIT License
Letterpress Explosion Animation - iPhone
License: MIT License
A cocoapod would be nice!
It would be great to be able to pass a completion block. I'd like to have it explode and then dismiss the VC.
It lists MIT license in the Cocoa Controls page: http://www.cocoacontrols.com/controls/letterpress-explosion
Not sure if its programmer error or its somewhere in the control but when I explode a view and then click that view again (while the explode animation is still occurring) I get the error below. Note this error doesn't happen if I click the view AFTER the animation has finished (i guess at that point its been removed from the superview though). I do set the tap gesture listener to nil so I'm not sure what the problem is
(lldb) bt
objc_msgSend + 19, stop reason = EXC_BAD_ACCESS (code=1, address=0x3f800000) frame #0: 0x012c009f libobjc.A.dylib
objc_msgSend + 19-[UIView(Geometry) convertPoint:fromView:] + 112 frame #2: 0x00235e61 UIKit
**38-[UIView(Geometry) hitTest:withEvent:]_block_invoke_0 + 96__NSArrayChunkIterate + 359 frame #4: 0x0159b03f CoreFoundation
__NSArrayEnumerate + 1023-[NSArray enumerateObjectsWithOptions:usingBlock:] + 102 frame #6: 0x00235d81 UIKit
-[UIView(Geometry) hitTest:withEvent:] + 640__38-[UIView(Geometry) hitTest:withEvent:]_block_invoke_0 + 132 frame #8: 0x015c35a7 CoreFoundation
__NSArrayChunkIterate + 359__NSArrayEnumerate + 1023 frame #10: 0x0159aa16 CoreFoundation
-[NSArray enumerateObjectsWithOptions:usingBlock:] + 102-[UIView(Geometry) hitTest:withEvent:] + 640 frame #12: 0x00235e85 UIKit
__38-[UIView(Geometry) hitTest:withEvent:]_block_invoke_0 + 132__NSArrayChunkIterate + 359 frame #14: 0x0159b03f CoreFoundation
__NSArrayEnumerate + 1023-[NSArray enumerateObjectsWithOptions:usingBlock:] + 102 frame #16: 0x00235d81 UIKit
-[UIView(Geometry) hitTest:withEvent:] + 640__47+[UIWindow _hitTestToPoint:pathIndex:forEvent:]_block_invoke_0 + 150 frame #18: 0x0022e238 UIKit
+[UIWindow _topVisibleWindowPassingTest:] + 196+[UIWindow _hitTestToPoint:pathIndex:forEvent:] + 177 frame #20: 0x001f36a6 UIKit
_UIApplicationHandleEvent + 1696_PurpleEventCallback + 339 frame #22: 0x02603ad0 GraphicsServices
PurpleEventCallback + 46__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION** + 53 frame #24: 0x01516962 CoreFoundation
__CFRunLoopDoSource1 + 146__CFRunLoopRun + 2118 frame #26: 0x01546f44 CoreFoundation
CFRunLoopRunSpecific + 276CFRunLoopRunInMode + 123 frame #28: 0x026027e3 GraphicsServices
GSEventRunModal + 88GSEventRun + 104 frame #30: 0x001f2ffc UIKit
UIApplicationMain + 1211In TestFlight builds I get a seg fault which I seem to have narrowed down to the line
moveAnim.path = layer.particlePath.CGPath;
Thought I might workaround the crash (or at least get a better idea of why it happens) by wrapping that code in a if ([layer respondsToSelector:@selector(particlePath)])
, but the crash still occurs.
It's not reproducible in simulator or on device with a development build, only occurs in TestFlight builds (or possibly any Production build).
Obviously/unfortunately this blocks me from using the project. Crash log included below.
Exception Type: EXC_CRASH (SIGSEGV)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 1
Thread 0:
0 libsystem_kernel.dylib 0x0000000191b561b4 __open + 8
1 AppName 0x00000001001296dc tf_open_file_no_create + 12
2 AppName 0x000000010012afe8 tf_send_crash_report + 184
3 AppName 0x0000000100131a88 TFSignalHandler + 464
4 libsystem_platform.dylib 0x0000000191bd3b18 _sigtramp + 68
5 AppName 0x000000010018dd9c CLSSignalHandler + 224
6 libsystem_platform.dylib 0x0000000191bd3b18 _sigtramp + 68
7 AppName 0x00000001001d7f98 __29-[UIView(Explode) lp_explode]_block_invoke (UIView+Explode.m:119)
8 CoreFoundation 0x0000000184f54a58 __NSArrayEnumerate + 464
9 AppName 0x00000001001d7ec0 -[UIView(Explode) lp_explode] / (UIView+Explode.m:113)
This tweak crashes my iOS 8 app (I've merged it with my Swift code) after the CAAnimation finishes and it calls [self removeFromSuperview].
Any idea why this is?
Thanks.
Can let the View does not disappear after the execution of the animation effect? What I mean is to let the view after the execution of the animation ๏ผ
hi vibrazy,
It is totally fine when i use ur source code on debug mode for iOS6.0 up,
but when i archive the app for distribution version installing it,and i called lp_explode function it is crashed.
Then I use window -> organizer -> device -> console trace crash log
reason is ->
: lp_explode()
: layer is true
: moveAnim is true
: -[LPParticleLayer CGPath]: unrecognized selector sent to instance 0x1cd530a0
: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[LPParticleLayer CGPath]: unrecognized selector sent to instance 0x1cd530a0'
*** First throw call stack:
(0x324f73e7 0x3a1f2963 0x324faf31 0x324f964d 0x32451208 0x17a085 0x324ebaeb 0x3244de37 0x179f95 0x3a60c793 0x3a60c5db 0x3a60fe45 0x324cb1b1 0x3243e23d 0x3243e0c9 0x3601d33b 0x3435a2b9 0xef387 0x3a61fb20)
Please help thx
When using this category with a UIButton, the app will crash. I couldn't know what the reason exactly was, but it is fine with UILabel, UIImageView and normal UIView.
I'm actually mostly done this โ can you create a tag, say "1.0" in your repository?
๐
Demo will crash after press picture
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.