Oct 25
PelaezDevelopment, Source Code, Tips NSLog, Source Code, syslog, Tips
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
Oct 15
PelaezDevelopment, Source Code, Tips, iPhone code, Shake, Source Code
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
Aug 02
PelaezSource Code, Toolchain, iPhone Download, SBS Lockdown, SBS Time, SBSettings, Source Code
Here’s the source code for my last two binary releases.
Source for the Lockdown Toggle:
Source for the Time Widget:
Jun 07
PelaezSource Code, Toolchain, iPhone Download, SBS Template, SBSettings, Source Code
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
Jun 06
PelaezSource Code, Toolchain, iPhone Download, ObjC, Source Code, template, Toolchain
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.