Archive

Archive for the ‘iphone’ Category

SCREAMINATOR on the AppStore

July 24th, 2011 2 comments

We are very excited to announce that the new SCREAMINATOR iOS app is finally ready on the AppStore!

You can visit the Official SCREAMINATOR Website for more info.

Get ready to SCREAM!

Categories: iphone, software Tags:

Upload Videos to YouTube with iPhone custom App

October 15th, 2010 49 comments

EDIT: This is an old post, and apparently things have changed quite a bit. Unfortunately I haven’t had the time to update this and I’m not sure what the process to upload videos to YouTube is anymore.

With the 4.0 iOS and its new AVCaptureSession we now have access to video data, so that developers can edit this info and create cool apps such as SketchWiz, Predator Vision or iRetroscope.

However it’s not clear how these videos can be shared through the net. So in this post I’ll explain how we can upload videos to YouTube with a custom app and provide some sample code to test it.

We will need the Google Data API Client for Objective-C, and install it into our application. Here are the steps to do so:

– Download the GData Client for Objective-C from here
– Open the GData project with XCode
– Drag and drop the group GData Source from the GData project into your project (reference it or copy it into your project directory, up to you)
– Optional: In your project delete all groups inside GData Source but YouTube and Commons. This will make the compilation process much faster. You will have to comment the imports in your GData.h
– Add the Security.framework into your frameworks
– In the properties of your target, add the -ObjC to your Other Linker Flags setting
– In the properties of your target, add the /usr/include/libxml2 path to your Header Search Path setting
– Make sure your C Language Dialect is c99 in your target properties

You should now be able to compile the API within your own app.

Next step is to go here to get a Developer Key from Google. Your Developer Key and Client ID are required in order to use the GData API.

Once you have them, take a look at the simple YouTube upload test sample code based on the Mac OSX Example inside the GData Client Objective-C code and add them there in the YouTubeTestViewController.m.

Sample Code

For more information and other type of installations for the API, please read the API documentation.

I hope it helps. Any feedback is welcome as always.

Categories: google, iphone Tags:

The ReactPad

March 19th, 2010 3 comments

Finally the ReactPad is here! I have been working hard on this project for the iPhone Music course at Stanford, and finally today a first beta is released. I was inpired by the ReacTable from the MTG, and I added more features like a voice input, gravity, load/save patches, …

IMG_1246

You have all the information in the Official ReactPad Website. Very soon on the AppStore!

Alright Titans!

Categories: ccrma, iphone, reactpad, stanford Tags:

The VoxCarina

February 15th, 2010 No comments

Last project for the iPhone I’ve been working on is called The VoxCarina, which is half a TalkBox, half an Ocarina. Check it out here. Alright!

Categories: ccrma, iphone Tags:

Sonic Skull Shot

February 2nd, 2010 No comments

I’ve been working on this application for the iPhone called Sonic Skull Shot (SSS) for the past week as an assignment for the course Mobile Music, taught by Professor Ge Wang.

It is a nice OpenGL application for the iPhone that makes use of the accelerometer and some touches to create a sling shot to throw skulls while synthezising some sound. It took me so many hours to do that, but in the end I think the result is pretty good.

You can download it from here!

screenshot2

Categories: ccrma, iphone, stanford Tags:

How to get all indexPaths from a UITableView?

May 27th, 2009 3 comments

I find this a very basic question, but somewhat difficult to find in the Apple documentation. The answer is not found in the NSIndexPath Class Reference, but in the NSIndexPath UIKit Additions. That’s why I think some people would not know about the following method which allows us to get a specified indexPath from a UITableView.

The method is:

+ (NSIndexPath *)indexPathForRow:(NSUInteger)row inSection:(NSUInteger)section

And it returns an indexPath object initialized with the indexes of a specific row and section in a table view.

With this method we will be able to retrieve all the indexPaths from a table view performing a loop like this:

NSInteger nSections = [tableView numberOfSections];
for (int j=0; j<nSections; j++) {
  NSInteger nRows = [tableView numberOfRowsInSection:j];
  for (int i=0; i<nRows; i++) {
    NSIndexPath *indexPath = [NSIndexPath indexPathForRow:i inSection:j];
    //Do something with your indexPath. Maybe you want to get your cell,
    // like this:
    //UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
  }
}

I hope this helps. If you find an easier way, please tell me.

Categories: iphone Tags:

First steps with the iPhone SDK 3.0 beta 5

May 8th, 2009 No comments

iphone-3-new-1

After reading this I finally had a good reason to install the new SDK for the iPhone. It seems like the guys from Apple want people to update to their firmwares as soon as they can, and now they make the developers make sure their new software works in the 3.0 version before uploading it to the AppStore.

And here I am (after some hours of downloading 2Gb, installing and testing), with a new fresh install of the SDK 3.0 beta 5 and… Apparently, I couldn’t work with any previous version of the SDK if I start a new project! Jaarrrr!

But nah, problem solved. You can actually work with any SDK installed in your machine by doing this:

– “Get Info” in your Project
– Go to “Build” tab
– Change the version of the SDK in the “Base SDK” row

I don’t know why the option to choose between SDKs was hidden by default. Anyway, now it works flawlessly.

I’ll keep on working with this, at the moment I like this new Spotlight in my Simulator!
Enjoy titans!

Categories: iphone Tags: