Navigating views on iPhone.

Its been awhile since I’ve posted anything, but I’ve been obsessing over an iPhone application.  I have three views set and was able to switch forward to next views pretty easily following several online tutorials that were available.  My favorite of which is this blog/tutorial.

That’s all well and good that I can move my views forward but how do I go back?  For this, I had to use some time, Google and Apple’s references and was able to find how to utilize the navigation controller.  See, my views did not have room for a navigation bar but I had used buttons to do the same.

After much testing and research, I found this simple line of code to move the page back.  In fact, once I used that everything about the navigation controller began to make sense!  I was just sad that there were no blog posts, tutorials or forums that had this method listed, so I decided to make sure there was at least one!

// Method: - (UIViewController *)popViewControllerAnimated:(BOOL)animated

-(IBAction)pageBack:(id)sender {
	[self.navigationController popViewControllerAnimated:YES];
}

Geocache idea.

So recently, I’ve been doing geocaching.  This is a lot of fun and great to do with children.  As I find caches, I get the feeling I should add one and I’ve thought it’d be fun to make it more nerdy than the sport already is.  The device I’m thinking of would incorporate using electronics in a waterproof box.  Obviously, as I build this, I’ll post it but the concept is simple…  A bit of PIC programming, some buttons and LED’s should be all that’s needed.  Then create a lock that will open with the right combination.  So press button A and a red light is on.  This should signal the next button and make about 4 stages of this and the lock is open.  Any geocachers have input on this?

An Idea.

Okay, this may be a rather dull post but here’s an idea and input would be helpful from those who’ve done this type of thing. So, a few years ago I did a lot with rocketry. A move to a less open area and the addition of kids caused a slow down, to a point. The kids love it but I don’t have the time to build the big ones until they get a little older. Anyhow, in that time I dabbled a bit with electronics.

My idea is a fun project my kids (6 and 7 years old) may have fun helping with. I’m sure it’s been done many times but make a radio that is controlled by a serial interface. I am constantly in work environments that block streaming radio, but I thought it’d be fun to make a device that will plug into a serial interface and it can receive the sound data as well as be able to control the channel and such through a program.

Anyone with experience in serial devices is welcome to contribute an opinion. Like most projects that seem simple, I’m sure this is not but thank you for your comments!