pausing spritekit game on app launch / exit .. iOS8

I’ve read everything I could find on this topic and still cant figure out my issue. I have tried pausing my game in every area of appdelegate func applicationWillResignActive(application: UIApplication!) { NSNotificationCenter.defaultCenter().postNotificationName(“pauseGameScene”, object: self) } func applicationDidEnterBackground(application: UIApplication!) { NSNotificationCenter.defaultCenter().postNotificationName(“pauseGameScene”, object: self) } func applicationWillEnterForeground(application: UIApplication!) { NSNotificationCenter.defaultCenter().postNotificationName(“pauseGameScene”, object: self) } func applicationDidBecomeActive(application: UIApplication!) {…

JQuery: Access Dynamic Element after append

I have a problem with accessing the Elements that appended in my website. this is my code: socket.on(‘userupdate’, function (data) { var userslist = []; $(‘#users-list’).html(”); data.forEach(function (item) { userslist.push(“<a><li id=’chat-private’ username=” + item.username + ” userid=” + item.userid + “>” + item.username + “</li></a>”); }); $(‘#users-list’).append(userslist); }); $(“#chat-private”).click(function () { alert(“We have Access!”); });…