We got plenty of applications powered by Apple Push notification feature and even we know how it's implemented. At the end when it comes for testing, simulator won’t help you out. We need actual hardware device. Since Xcode 7, you can now test apps on your device without a program membership. However, to configure push notifications you need a push notification certificate for your App ID, which requires the program membership. Now assume that your server is not ready to trigger notifications. Well, it doesn't stop you testing and see the magic working ! Listed below best options for the same. From online portals : http://apns-gcm.bryantan.info/ http://pushtry.com/ http://www.pushwatch.com/ From Mac app : https://itunes.apple.com/in/app/apn-tester-free/id626590577?mt=12 https://github.com/noodlewerk/NWPusher I have used NWPusher and I will recommend the same. ;-) So, here its recipe Key items [1] PEM file [2] Device toke...
Recently I published a countdown app . At one point of development - I have to show a timer on a UILabel which ticks on each seconds. As usual I started setting text to a label object - self .timerLabel.text = someString Easy piece of cake right !? But wait ... it won't take much user attention when timer ticks on every seconds. So I decided to make use of a simple animation while label gets text update. I found there are dozens of ways to animate a label. In this short article, I listed 3 best way you can animate text on a label. ( Spoiler Alert 👀- I decided to go with 3rd option) 1. Fade In - Fade out animation : CATransition class has got transition type `fade`. With timing function of CATransition - I was able to see the below result. let animation: CATransition = CATransition () animation.timingFunction = CAMediaTimingFunction (name: CAMediaTimingFunctionName .easeInEaseOut) animation.type = CATransitionType .fade animation.subtype = C...