Saturday, October 6, 2012

Yet an other Objective-C block for fun

You know what, I could not live without blocks... It's sad but true.

Action blocks!

If you read all my previous block posts you now know how to use a block in a NSTimer. It's pretty neat and few people did take the time to say so in the comments which is great!

Now let's push the principle in the UI land. How about a block as target/action for any UIControl subclass ? That would be great not to have to write an other delegate method...

Thursday, September 27, 2012

Easy Updating of UITableView-s

When it comes to update a UITableView you have two choices. Either you reload the whole UITableView by sending a reload message or you can do differential updates by inserting, deleting and reloading rows with changed contents.

However it may be somehow difficult to always succeed in differential updates. Very often a UITableView assertion error falls down. And it can become very confusing with many sections etc...

Thursday, September 20, 2012

Seamless downloads with MCCURLConnection

I already told you about this class of mine which is a queued NSURLConnection with block delegates.  I use it as a ASIHTTPRequest replacement. Now it's been updated (here) and there are new features I'm going to show you.

Friday, September 7, 2012

Objective-C blocks for fun (part 2)

Last time I gave you a trick to run a block in a timer using a NSBlockOperation and I hope you enjoyed it ;)

Today, I will show you how to avoid delegate method implementations using blocks.

Wednesday, September 5, 2012

On ASIHTTPRequest replacement


When it comes to making HTTP requests, the most used library historically was ASIHTTPRequest. But since it's development was abandoned by it's creator many developers are seeking for a good replacement.

Thursday, August 30, 2012

The Simplest Gallery UIScrollView class for iOS 4+ ... ever ;)

In my last post about UIImage decompression nightmare, I told you I was working on a Gallery scrollView and now it's been released on github.

the gallery in action on iPhone

Wednesday, August 29, 2012

On iOS UIImage decompression nightmare

Yesterday I tried to polish a Gallery class that I work on which I'll be posting to Github soon. This class is intended to be used as the ultimate gallery view ;) It's really easy to understand and thanks to blocks it is really easy to use. But anyways I will make a post when it's available on github.

The problem I encountered while using my new gallery class to display images was that even though the pages creation was separated from the data sourcing using dispatch queues the first time an image was loaded, the scrolling would be really bad.