Copying Xcode samples

Posted by Jerry | Posted in Development | Posted on 18-06-2011-05-2008

0

Whenever a new version of the iOS SDK is released, one of the first things I do is copy all the sample code released with that version to it’s own directory. This allows me to browse the samples more easily and open them all from a common location without having to open them one-by-one. Here is how we do that:

1. Open Xcode preferences and choose the Documentation tab. Pick the new library and show information on it (the arrow in the lower left corner opens the info pane). Click the link for the Installed Location to open Finder to that location.

Xcode preferences

2. The file that stores the documentation for this iOS version is a docset. The one we want should be highlighted. Right-click and choose “Show Package Contents”.

Show Package Contents

3. Browse to Contents/Resources/Documents/samplecode inside the package. This is where all the code and html for help is located. Now we just need to get the code out of the folders.

Contents/Resources/Documents/samplecode

4. Search at that location for filenames containing zip. That will show you just the zip files under that directory. Then you can select all, copy to a location you choose, I use a folder under my documents directory, and then extract the zip files (use Command-O to open them with all the files selected in the new folder). Now you should have a folder tree with all the sample code there ready for you to browse. Happy coding!

search for zip and copy

Using iAds While Maintaining Backwards Compatibility

Posted by Jerry | Posted in Development | Posted on 11-07-2010-05-2008

0

Great post from Greg Fiumara about using iAds and still deploying to pre-iOS4 devices.

Screenshots for the App Store

Posted by Jerry | Posted in Development | Posted on 05-06-2010-05-2008

0

This app is going to save me a ton of time making screenshots for HandiBible. http://www.curioustimes.de/iphonesimulatorcropper/

Adding jQuery to an iPhone project in XCode

Posted by Jerry | Posted in Development | Posted on 23-04-2010-05-2008

1

You might think that if you add the jquery js file to your project, you can build and reference it from html you load into a UIWebView. That’s what I thought too. Here are the steps you need to take.

1. Add the jquery file to resources. Drag the file in, right-click and choose to add an existing file. Whatever you are comfortable with.

Screen shot 2010-04-22 at 4-22-10 9.54.20 AM.png

2. The file will be automatically added as source code. In Xcode under Targets, expand the target you are working on and you’ll find two groups, “Copy Bundle Resources” and “Compile Resources”.

Screen shot 2010-04-22 at 4-22-10 9.55.00 AM.png

3. Drag the file from the “Compile Sources” group

Screen shot 2010-04-22 at 4-22-10 9.55.19 AM.png

to the “Copy Bundle Resources” group.

Screen shot 2010-04-22 at 4-22-10 9.55.42 AM.png

This tells Xcode to package the file up and include it with your app as a resource instead of compiling it.

4. Include the reference to jQuery in your HTML.

html = [NSString stringWithFormat:@"<html><head><script type='text/javascript' src='jquery-1.4.2.min.js'></script></head><body>%@</body></html>", body];

5. Set the baseURL using the path to your jQuery file.

[myWebView loadHTMLString:html baseURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@”jquery-1.4.2.min.js” ofType:nil]]];

That’s it. You can now make jQuery calls in your code.

JamSession Free downloads now available

Posted by Jerry | Posted in Development | Posted on 24-02-2010-05-2008

0

Version 1.1 of JamSession has just been approved by Apple and will be live in the app store soon. This update allows you to download new songs for free. With this functionality, we plan on adding new content for you to play along with. If you like JamSession, please review it in the app store and tell your friends to keep the content coming.

Thanks for all your support!

JamSession title screen

JamSession title screen


Downloads are all free

Downloads are all free


16 total songs are available for playing in JamSession (more to come soon)

16 total songs are available for playing in JamSession (more to come soon)


You choose what instruments to play along with

You choose what instruments to play along with


We have some great contributors to this project

We have some great contributors to this project

JamSession update with downloadable music

Posted by Jerry | Posted in Development | Posted on 05-02-2010-05-2008

0

Very soon we will be updating JamSession to include free music available for download. Just pick the song you want to play and download it. All original music, all available for free with your JamSession purchase.

Screenshot2


Screenshot3

Check out JamSession in the app store

Posted by Jerry | Posted in Development | Posted on 30-12-2009-05-2008

0

Check it out. If you are a musician, you’ll love it.

JamSession

iTunes-badge

App store review time

Posted by Jerry | Posted in Development | Posted on 30-12-2009-05-2008

0

Was the app store closing over the holidays used to do a major overhaul of the approval process? JamSession was submitted yesterday morning, and today I got an email that it is ready for sale. I was expecting 2-4 weeks. Actually, I was hoping it wouldn’t be longer than 4 weeks due to a backlog from the holidays. See for yourself:

JamSession approval time

Coming Soon – JamSession

Posted by Jerry | Posted in Development | Posted on 29-12-2009-05-2008

0

We’ve got an exciting new product that was submitted to the app store today. JamSession is an app that you can use to practice playing with a band – even if your band isn’t available. Just plug in your headphones or your sound system, and play along. Check out these awesome graphics by c1design.com:

JamSession
For more screen shots, read the rest of this entry

Live in the App Store!

Posted by Jerry | Posted in Development | Posted on 17-08-2008-05-2008

0

We finally got an email from Apple on Thursday afternoon that HANDiBIBLE would be live in the store in “48-72 hours”. I couldn’t sleep that night, so I checked the store around 12:30 in the morning, and it was live!! Check out HANDiBIBLE on iTunes.