Cool UIColor category

When working with graphic designers for interface design you get a lot of color codes like #17d3ff and #555 (basically HTML color codes) and using UIColor main methods could be a pain.

To set color #17d3ff using Obj-c

UIColor* color = [UIColor colorWithRed:0x17/255.0f 
                          green:0xd3/255.0f 
                          blue:0xff/255.0f 
                          alpha:1.0f];

It’s a mouthful.

Luckily nicklockwood has created an great Obj-c category for these specific needs. It has a lot of utility methods added like colorWithString which takes an HTML color codes directly

        UIColor* color = [UIColor colorWithString:@"#17d3ff"];

Much much better, and it also keeps the readability of your design code much easier to follow.

Try it here.

I have also made a fork that includes some more utility functions like “darker/lighter” shorthands.

Try the fork here

Possible iOS split-screen alternative

In the final days leading up to WWDC 2014, rumours started circulating about a split-screen view for iPads (here). Some were excited. But some questioned the presented method as it is less intuitive and requires new muscle memory and gestures.

After June 2nd, these rumours were obviously proven wrong and talking about a new way to multitask has died down.

But something during WWDC caught my attention.

Continue reading

Web services by example 3 of 3

I have built many WebServices APIs over the years. I dealt with multiple server CMS platforms (WordPress, Joomla), in-house servers, PHP, ASP many of which needed some form of RESTful api to communicate with mobile applications.

Here’s the final of my three part tutorial that develops a RESTful web service by example.
Continue reading

WWDC… W stands for Wow!

wwdc-2014

Just wow! the WWDC keynote just finished. Where to start?

Apple on June 2nd, 2014 just blew the doors on every other platform. Don’t even think of Android, don’t give BB (remember them) any thought, forget Tizen (were we not already?!). They introduced the ultimate development platform.

From a new programming language, to a realtime development engine, to HealthKit, SpriteKit, SceneKit, HomeKit, Swift, Xcode 6, iCloud Drive, Cloud kit, … the list is so big.

There’s a lot to cover. I will try to recap the most important subject in the coming days…

Just one thing stood out from Apple… Apple is just wow!

Web services by example 2 of 3

I have built many WebServices APIs over the years. I dealt with multiple server CMS platforms (WordPress, Joomla), in-house servers, PHP, ASP many of which needed some form of RESTful api to communicate with mobile applications.

Here’s the second of a three part tutorial that develops a RESTful web service by example.
Continue reading

Futuristic Gadgets I’m excited about

There is no doubt that we all are looking for ways to raise our standard of living. The current home gadgets have brought us great convenience and enjoyment over the years, but that does not stop us from looking to more convenience in our future gadgets. Inventing new gadgets is an obviously effective way to improve our standard of living. Here are some future home gadgets which may make us excited and longing for…

Continue reading