Sorry, this entry is only available in Español.
Today we go to present you a little class which will help us to reproduce youtube videos in out iPad apps.
The class basically is UIWebView with some html which incrustates youtube player.
You can use the player this way:
ZBYouTubeView *vid = [[ZBYouTubeView alloc] initWithFrame:self.bounds andUrl:@”http://www.youtube.com/watch?v=nmwIgF2gekY&feature=feedf”];
The player automatically will show an UIActivityIndicator while loading the video.
Also, if you change the frame of the view the video size will adapt to the new size.
Hope this will be useful for some of you.
With the OpenFeint App and his game spotlight, we have in our hands a new free game every day.
There are a lot of webs and even apps which allow us to find or be notified when apps get free, for gamer OpentFeint is a must App to have. I have been using it for a couple of weeks and the first thing i do every morning is to get the free game of the day, I don’t really have time enough to do more than a quick test of the game but at least I know I’m not missing the opportunity.
What I like of the OpenFeint system is the achievements and the social face of it, world rankings, friends and all the other options it offers.
We will see if OpenFeint can stand the blow from Apple and his new game center, knowing the guys from the apple it will be very good made and doesn’t only offers a world ranking but a multiplayer option.
Depending on the application we are developing, might be interesting or even needed that the iPhone doesn’t autolock while our application is running. We are lucky as there is an easy why to do this and it only needs one instrucction.
[UIApplication sharedApplication].idleTimerDisabled = YES;
That is all we need so the iPhone stays all the time with the screen on, a good place to put it is in the applicationDidFinishLaunch: in our UIApplication delegate.
Be careful though cause if the user runs away from the iPhone from long times it will empty its battery as it will have the display all the time on.