From my previous post Javascript setTimeout in Swift 2.0 As our Swift evolved, here is the same code for swift 3.0 Code As the swift 3.0 mandate the closure to has @escaping parameter by default instead. Here is the code:… Continue Reading →
Today, one of my work required the app to remember the track selection, so that it can be resumed when the app is resumed. The easy problem are how to store the values. The tricky problem is how to set… Continue Reading →
Notification Name management in large project sometime is a pain, here is one of the solution to manage it.
Sometime creating a UIImage as a buffer for image manipulation is critical for achieving the good application performance. Or with whatever reason it deem worth: Here is a short snippet to get a UIImage from any given UIView while honoring… Continue Reading →
So creating Gray Scale image from UIImage is very simple. There are multiple source codes available. There are only few that works with Transparent Images, the reason being, that the gray scaled image doesn’t translate the alpha information properly. So… Continue Reading →
Flag the method as deprecated in Objective-C and Swift 2.
JavaScript loop async calls; Asynchronous calls such as AJAX is troublesome when you need to apply the call one-by-one with set of input. Here is a simple framework to make life easier.
A short snippet to deliver GCM payload with JavaScript. So in the quest to complete my app, I need to incorporate the Push Notification. The Push Notification itself is quite abundant, but luckily Google already provide an easier solution called… Continue Reading →
Getting a Long Lived Facebook Access Token. Normally Facebook Open Graph API needs you to issue an Access Token, and if it is user Access Token it will last for only few minutes. So here is how you can extend… Continue Reading →
© 2019 peatiscoding — Powered by WordPress
Theme by Anders Noren — Up ↑