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…
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…
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…
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…
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” »