Use CSS3 with “-webkit-transform” if you can

Use CSS3 with “-webkit-transform” if you can

I was making side-project page recently and was trying to do something extra for iOS devices. I did end up with delicate 3d transformations of…

Read Article →
TextMate 2 and GPL

TextMate 2 and GPL

I read interview with TextMate 2 developer on Ars Technica and it just makes me laugh. I never understand people releasing their software on GPL…

Read Article →
TextMate 2 went open source + download

TextMate 2 went open source + download

A LOT of blogs, websites etc. reported that one of most known code/text editors on OS X went open source. Since yesterday TextMate 2 is…

Read Article →
Sad truth about Google acquisitions

Sad truth about Google acquisitions

People get excited when they favorite companies are bought by big guys like Google or other companies. I always don’t understand them – it’s usually…

Read Article →
UITableView with different background

UITableView with different background

UITableView comes with nice image background for grouped style but if you want to change it – it’s really easy – you can just use backgroundColor property. UIColor can be also created using images with some pattern but beware – there’s a reason why UITableView pattern has vertical lines. It’s because every section has it’s own background. When you use something different pattern you can see what’s the problem (image above – left side).

The fix is pretty simple – create empty view with the same background and use it as backgroundView property.

UIView * bgview = [[[UIView alloc] initWithFrame: self.tableView.bounds] autorelease];
bgview.backgroundColor = [UIColor colorWithPatternImage: [UIImage imageNamed: @"tablebg"]];
self.tableView.backgroundView = bgview;

The code is used inside UITableViewController subclass and tablebg is a PNG image file with the pattern of course. Continue reading “UITableView with different background” »

Read Article →