Improved Logging

No Comments

This is an improved logging technique I developed in the last couple of days. It’s not to debug an specific problem, but to get a general idea of where your bug is, and if there are no bugs, to know the stack of methods called.

It’s quite simple, but it does require some work to implement. If you have a big project, it could take some time to implement.

More

Shake To…

1 Comment

This is a class I made to detect shakes. It’s really simple, you just create an object, initialize it, set a delegate, and it will send messages to the delegate when the movement change is significant, then your object can do whatever you want, like refreshing info or whatever.

Details:

  • Detects side shakes.
  • Has a mechanism to avoid sending multiple messages for one long shake.
  • Sensitivity can be edited easily.
  • It has it’s protocol, so you don’t have to add new methods to your receiver’s interface.
  • It uses #ifndef’s so it can be imported several times without causing errors for having the same class multiple times.
  • Only one can be working at the time (activating a new one will deactivate the previous working one).

More

SBS Toggles Source Code

No Comments

Here’s the source code for my last two binary releases.

Source for the Lockdown Toggle:

http://blog.epelaez.net/wp-content/plugins/downloads-manager/img/icons/default.gif File: Lockdown Toggle Source (963B)
added: 03/08/2009

Source for the Time Widget:

http://blog.epelaez.net/wp-content/plugins/downloads-manager/img/icons/default.gif File: Time View Source (2.27KB)
added: 03/08/2009

SBSettings View template

No Comments

Here’s a template I made for an SBSettings toggle that consists of a simple view.

It uses SBSettings’ images so it matches your SBSettings theme.

This one uses the small image, like the one in the dock if you have less than 5 icons. You can change it fairly easy by just changing the name of the image it uses, and the size of the frames to the the size of the new image. More

Simple App Template

No Comments

I decided I needed a template App for the toolchain, so here it is.

This is a template app that will make an empty app that does nothing but put your screen white. It’s made from a UIApplication subclass, a UIViewController subclass and a UIView subclass, so it’s pretty much ready for you to code your own view, add your own methods and turn it into something.

http://blog.epelaez.net/wp-content/plugins/downloads-manager/img/icons/default.gif File: App Template (3.31KB)
added: 06/06/2009