xcode


Spritekit Swift particle SKEmitterNode add remove


so this is nice for create a particle, but whats the right way to remove it , after the duration, sparkEmmiter.particleLifetime do not remove it automatically
let sparkEmmiter = SKEmitterNode(fileNamed: "MyParticle.sks")
sparkEmmiter.position = CGPointMake(self.frame.size.width/2, self.frame.size.height/2 - 200)
sparkEmmiter.name = "sparkEmmitter"
sparkEmmiter.zPosition = 1
sparkEmmiter.targetNode = self
sparkEmmiter.particleLifetime = 1
self.addChild(sparkEmmiter)
this solutions produce simulator crash
var re = SKAction.waitForDuration(1)
var remove = SKAction.removeFromParent()
var seq = SKAction.sequence([re , remove])
sparkEmmiter.runAction(seq)

Related Links

Check UITextField focused on XCUITest
Autocompletion is not working in Xcode 7.2.1
Keep track of time (when app is closed or in background)
How to use your own documentation for functions override with apple's quickdoc in xcode?
PouchDB not detecting sqlite plugin using cordova (iOS)
App Testing iOS Xcode Swift
How can I run Score Label when I touch the object?
Swift: value of type (_)->has no member 'Generator'
Random Color Generation of my Choice
Xcode 7.3 constantly building in idle
Xcode error : Thread 1: signal SIGABRT in Swift (game application)
Xcode git not showing xcassets to commit
How to enable horizontal scrolling of text in NStextView window for OSX application?
How to prevent the Apple Watch from going to sleep?
xcode 7.3 can not find glances in my watch
Plotting multiple scatter lines in different rate?

Categories

HOME
knockout.js
mc
lambda
angular-ui-grid
focus
bots
redmine
swi-prolog
subdomain
theano
ant
celery
cypher
gentelella
sentry
ag-grid
reportviewer
sslhandshakeexception
smartgwt
orange-api
supervisord
google-cloud-logging
jaspersoft-studio
nullreferenceexception
cmake-gui
quantitative-finance
math.js
django-import-export
materialize
unmarshalling
amazon-iam
copy-protection
windowsiot
series
cucumber-junit
wdk
macports
cloudera-quickstart-vm
grunt-contrib-watch
icepdf
elasticsearch-aggregation
bit-shift
swift2.3
.net-micro-framework
cyanogenmod
jgrapht
sigsegv
webvtt
gnome-terminal
nivo-slider
emf-compare
dymola
bpms
xcode6.4
always-on-top
cdo.message
sharepoint-apps
jemdoc
fdt
flipclock
gdl
python-cffi
in-app-billing
knife
unhandled
wlanapi
sequence-sql
webproject
nhibernate-criteria
iodocs
tabris
principalcontext
armv6
jmenubar
.net-remoting
insertion
ntlmv2
icenium
linkbutton
system-requirements
wndproc
infopath-2007
getopts
qt-mobility
mediacontroller
aptitude
resharper-5.1
oracle-pro-c
external-sorting
fuzzy-comparison

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App