Archive for the ‘developer’ Category

UICustomSwitch – customizing UISwitch > color it, change labels

Thursday, October 29th, 2009

UICustomAfter looking for a day at how to change the blue of the UISwitch to a different color so it can match my theme in PocketMoney I ended up writing my own. This will let you change the tintColor and the labels. If you want to modify other aspect so fit to change the label to images you’ll have to modify the .png files.

This code can be freely used in any kind of project as long as the copyright information stays intact. If you improve on the code then please share it back to me so I can integrate it in with my code.

UICustomSwitch.zip – UICustomSwitch .h/.m and project test file

Code snippets forum: UICustomSwitch – color it, change labels, change log

UIImage-Extensions for cutting, scaling, and rotating UIImages

Tuesday, September 15th, 2009

I’ve posted the source for my UIImage-Extensions to my forums. It is a utility category for UIImage that allows you to get an piece of an image, scale an image, and rotate an image.

UIImage-Extensions source

- (UIImage *)imageAtRect:(CGRect)rect;

- (UIImage *)imageByScalingProportionallyToMinimumSize:(CGSize)targetSize;

- (UIImage *)imageByScalingProportionallyToSize:(CGSize)targetSize;

- (UIImage *)imageByScalingToSize:(CGSize)targetSize;

- (UIImage *)imageRotatedByRadians:(CGFloat)radians;

- (UIImage *)imageRotatedByDegrees:(CGFloat)degrees;

With a special thanks to Ben Gottlieb for getting the rotate to work.

Creating video tutorials for iPhone apps

Monday, March 23rd, 2009

I decided to create some video tutorials for my applications for the iPhone. I needed the tutorials to work on the iPhone, too, and that took some hair pulling.

So after hours of searching and trial an error here is what seems to work for me.
(more…)

Dealing with TERMINATING_DUE_TO_UNCAUGHT_EXCEPTION

Tuesday, March 3rd, 2009

During debugging I have seen seen TERMINATING_DUE_TO_UNCAUGHT_EXCEPTION thousands of times which resulted in  me wasting all kinds of time stepping through my code or putting in hundreds of NSLog statements to figure out where in my code the “uncaught exceptions” are happening. (more…)

Catamount Software is proudly powered by WordPress and is lovingly designed by I.M.A.G.E
Entries (RSS) and Comments (RSS).