Archives for posts with tag: objective c

Update: code for the class is now on GitHub. Also updated with BSD license and a fix for the next iOS version coming soon. If you have issues please use GitHub.

The color of a UISegmentedControl in the UIKit is customizable only in the bar style mode, so if one uses the plain or bordered mode, the only possible color is blue. This could be a problem if blue does not fit well in your app or in a view.

The only way to support other colors is to subclass the UISegmentedColor and draw the view yourself. That’s what I did in the MCSegmentedControl class, here’s how it looks with a green tint color.


(more…)

update: this issue has been resolved, check out the official repository on GitHub

I was integrating the MGTwitterEngine in an iPhone App, and I noticed that there was something wrong with the status ID. In fact they were handled as int values, but the current ids are reaching 5billion, as you can see on the site Twitpocalypse.

So the solution is to treat them as long long int, which can be done editing the MGTwitterLibXMLParser.m file adding a method: (more…)