How to Set a Multi-line Title in UIButton

I’ve seen lot of people complaining to the fact that UIButton doesn’t support a multi-line title. As of iPhone SDK version 2.2.1, UIButton’s title frame is always an one-liner, no matter how long the text is.

People are complaining and getting confused because UIButton seems to have the interfaces needed to do so cleanly, namely -setLineBreakMode: with UILineBreakModeWordWrap which would affect the title label, and then adjusting -titleRectForContentRect: to manage room to accomodate multi-lines, but happens that both don’t do nothing about it, so I’ll show how to do it dirtily. Or sort of.

Continue reading “How to Set a Multi-line Title in UIButton”

CSSEdit Color Theme for Xcode & IntelliJ IDEA

I love everything in CSSEdit, from its features to the beautiful user interface. But there’s one thing I like so much that I want to have it everywhere: It’s the syntax coloring theme.

I spent most of my time crafting code, either in Xcode, IntelliJ IDEA or TextMate, and, oh boy, I like to do it classy. Hence, to date, I’ve ported CSSEdit’s color theme to XCode and IntelliJ IDEA, and now I’m sharing the love here with you.

Continue reading “CSSEdit Color Theme for Xcode & IntelliJ IDEA”

Random (Witty) Desktop Pictures in Mac OS X

Let me tell you about this simple Mac OS X feature that (randomly) alternates between desktop background pictures.

I never really gave it much credit as something useful or witty until I came across this beautiful work by the gifted Louie Mantia. I immediately liked the background artwork of the pictures but I wasn’t convinced to use them until I realized how well the subtle (PRODUCT) RED letterings would work together with the mentioned feature.

Continue reading “Random (Witty) Desktop Pictures in Mac OS X”

The Beginning

Damn, it was about time!

I’ve been dragging the start of this blog for about a year now because neither time nor proper motivation haven’t been on my side. I have this day job, you know, just like you probably do. Problem is, I’m still finishing college. And this pretty much sucks up most of my time.

Truth be told, I’ve been neglecting almost all parts of my online social presence for the last couple of years—read blog, Twitter, Facebook, LinkedIn, and pretty much everything else, for that matter—.

Well, but this year, I’m off to a new start. New year, new life, new resolutions and now I’m really committed to this.

What will I blog about?

This will be an attempt to put into words my opinions, ideas, rants and occasionally to talk about and detail what I’ve been up to. While spelling out code, dangling on software development process and rambling on user experience/interface design for the web, desktop and mobile platforms, I guess something worth putting up here will come up.

Particularly, since lately I’ve been fully immersed with iPhone development, I’ll share some bits now and then around here on Objective-C, UIKit and the App Store.

Though, let me advise you. One could say I’m biased and annoyingly opinionated. That would come up totally true, but heck, that’s the way I’ve been getting along all my life, so you may expect this to reflect here.

So, here I go. I’m blogging now. Hope you’ll like it. Be at will to subscribe the syndicate feed.

Disclaimer: Here I’ll express my own opinions, which are not endorsed in any way by my employer, nor anyone else, for that matter.