You’ve probably have noticed that the new 60Hz App has a handful of settings which lets you customise your notifications, main list episode listings and order of episodes. Its a comprehensive list of settings, which may bamboozle you. Well the good news is, that the App will work just fine with the default settings the App ships with. But you can modify these settings to really fine tune the experience you desire with 60Hz. NOTIFICATIONS …
Human readable NSDate compare
This is my last weekend project. I was working on my new App, 60Hz and wanted a nicer, more accurate way to feedback to the user the difference between 2 dates. For example a certain date was 3 weeks ago, last week or in 3 days compared to another date. It started off as a small refactor, but ended up with this monster. Why so long you ask…. well this code takes care of edge cases like …
iOS6 MDMailcomposeViewController issues
I ran into a really strange but replicable issue with MDMailcomposeViewController today. Basically the issue was MDMailcomposeViewController becomes progressively slower and slower if you open and dismiss it. To reproduce the issue… Bring up the MDMailcomposeViewController dialog with an image attached Cancel it and say delete draft repeat the process couple of times… You will notice that it takes longer and longer to load. It becomes so bad the App appears to hang with a black screen but comes back …
Animated gif effect on iOS
Ever wondered how to mimic the animated gif effect on iOS? Well there is a very neat trick you can utilise in UIImageView. You can assign an Array of UIImages and tell it to show one after another to give you the desired effect.
|
1 2 3 4 5 6 7 8 9 10 |
UIImageView* animatedImageView = [[UIImageView alloc] initWithFrame:self.view.bounds]; animatedImageView.animationImages = [NSArray arrayWithObjects: [UIImage imageNamed:@"image1.png"], [UIImage imageNamed:@"image2.png"], [UIImage imageNamed:@"image3.png"], [UIImage imageNamed:@"image4.png"], nil]; animatedImageView.animationDuration = 1.0f; animatedImageView.animationRepeatCount = 0; [animatedImageView startAnimating]; [self.view addSubview: animatedImageView]; |
Avoiding memory leaks when using blocks
As we all know, blocks are a god send in iOS 5+. They make your code look smashing and easy to work with. Delegates always made me uneasy, though powerful. NSNotifications made my head hurt when it comes to debugging. So blocks have become my goto solution for anything. But one primary issue with using blocks is that its very easy to leak memory if you are not careful. Apple WWDC 2012 has a very …
I am Australian
I became an Australian on Australia Day. I pledged my allegiance to Australian way of life and sang the Advance Australia Fair proudly. This is the third time I pledged allegiance to a country (Sri Lanka by birth and Singapore) but this time, I did it with my own accord. No one was forcing my hand to become an Aussie. So why did I want to become an Aussie? The answer is, I feel like I belong …
Facebook Graph Search
If you didn’t know, Facebook CEO Mark Zuckerberg announced Facebook Graph Search yesterday. This in my view is a huge announcement for one particular reason. Search results relevancy! No doubt Google is the leader in search, but Google only knows what you are looking for. On the other hand, Facebook knows very little intimate detail about you (whether you like it or not) from your ex girlfriends/boyfriends to where you like to eat to what movies you like …
Start-up mindset
In the beginning How many times you hear the word “Start-up” on a given day? Did you ever stop to ponder what it really means? My fascination of the idea of a start-up started back in 2009. But I didn’t know or called it a start-up. It was simply a “business idea” I started investing more and more of my spare time. Then my brother got involved and it became a family business. Both me and Dineth, …
Certificate based client authentication in iOS
Background I recently had to implement a SSL certificate based client authentication in an iOS app for a client. I had the correct VPN profile (with the corresponding client certificate) installed on the device KeyChain. Mobile Safari App had no issues connecting and authenticating against the server challenge, but App I was working with, gave me HTTP 403. After a little road trip on google, I discovered that iOS Apps run on sandbox does not …
MomentoJar
Today my new app came out… MomentoJar. This app in many ways important to me personally and for my start-up. Its important not because we think its a cracking idea, but the execution of it. The idea for MomentoJar came about after my trip to Thailand, where 8 of us snapped 6000 photos and we never got around to sharing those photos because no one had the time to go through them. Dineth, then came …






