itunes movie trailers gridview - objective-c

I'm trying to reproduce a gridview for a landscape only iPad app.
I've tried a few know Gridviews such as AQGridview or GMGridView but it doesn't fit since it's not a "traditional" gridview (it is for an epg so the elements are not of the same size - depending on their duration).
What I would like to achieve should be more like the iTunes Movie Trailers app.
I was wondering if you know any library (free & open source, if possible) that could help me to achieve this.
Last one I've seen is NGVaryingGridView which sounds promising but it doesn't seem to be optimized (try to rotate it just for fun).
Thanks in advance for any advice.

Since iOS 6, Apple added UICollectionView. Using a UIFlowLayout you can do exactly what you want. It's pretty neat. The only downside is that it's not available in iOS 5.

Related

UIPageControl with Images in Xcode 5/iOS7

I've been searching for an hour now and can't seem to find out how to use UIPageControl to act as a swipe between images (sort of like the weather application, but with images instead of pages).
I have 7 images and I want to use them to create an instruction manual for a game I'm developing.
I am new to developing so bear with me.
Can anyone provide links to tutorials that will show me this, or show me the code in the comments below?
Thanks.
In this tutorial, check the Paging with UIScrollView section
You can use UIPageViwController to do something similar. Here is the tutorial for it.

Grid View of photos?

I'm new to iOS development and I was wondering how to make a simple app that displays a grid of say 4x4 photos.
When a user would click on a thumbnail photo the view would go to a full screen view of the photo. I'm surprised that there is no controller for this by default in Xcode 4.2(that I know of). Also I have checked out third party solutions like Three30 and AQGridView but they seem heavy and as a new developer a little to complicated. Isn't there an easy way of doing this? Can someone point me to a good tutorial or give me an example of how to do this? And I would HIGHLY prefer to not use any third party solutions but if you must insist please reference a good tutorial that is compatible for Xcode 4.2,Storyboard, and ARC...
Thanks for bearing with me...
-Shredder2794

Directly Record Screen on Mac

OK so I want to record the screen of a Mac directly to a .mov or .m4v. I've taken a look at Son of Grab from Apple, but I would prefer not to deal with screenshots and individual images and just work with video.
I thought there should be something in QTKit but I can't find it. I know this can be done in OpenGL, but 1) I don't know how and 2) I'd like to avoid that if possible.
Just to elaborate, I am recording from iSight using QTCaptureDeviceInput and (obviously a QTDevice) because I need to solution to work on Snow Leopard.
It seems like there should be a way to just target the screen as the input device for QTMediaTypeVideo.
Any help would be greatly appreciated.
You can use AVFoundation to do screen recording on the Mac. It's only available on 10.7 though.
You can use CGDisplayCreateImage/CGDisplayCreateImageFromRect APIs (10.6+) to obtain still images of screen and then making a movie out of them.
I'm not sure how good will be the performance though.
I have found that when faced with the question, will it be fast enough or not, just give it a try. Do a quick test by gabbing frame after frame say 1000 times and time it. CGDisplayCreateImageFromRect is not that hard to call at all. I have called it for single screen shots of the whole screen when the mouse was clicked, and it hardly slowed my mac down (only a basic dual core machine).
Apple has two samples showing the main two ways this can be done: :-
ScreenSnapshot
SonOfGrab
It would be easy to modify these to do it say 1000 times in a loop!

360 degree video in MPMoviePlayerController

I am trying to develop an iphone application which needs to show a 360 degree video like the one and rotate the video as per the phone movement. How can i do this? Is it possible to do this with normal MPMovieplayer controller?
I don't think you can do this with a normal MPMoviePlayerController, but there are several libraries out there to achieve this. Have a look here:
PanoramaGL
Panorama 360
They work with OpenGL and you can embed them in your Objective-C code.
EDIT:
As #Mangesh Vyas kindly pointed out those are intended to use with fixed images only. However they might be a suitable starting point for embedding video as well, if you modify the code accordingly. They already do the handling of direction, accelerometer etc. so you don't have to implement all that yourself.

Library for displaying image sets on an iPad

I'm looking for some cool libraries out there to display a bunch of images in my iPad application.
I think they are already out there, and I don't have to start from scratch, but I can't find some good ones.
Check out AQGridView as well.
Check out KTPhotoBrowser, I use it in a universal app, and it works pretty good.
Also, search Github : Photo Gallery for more open-source solutions.
See the answers to these questions on Stack Overflow:
How To Create A Gallery on iOS
float:left in objective-c
There are probably more questions about the same subject. Seek and you shall find.
I would simply create a web page with all the images, and then display it using UIWebView.
Did you want to do the coding yourself?
I found the Apple example "LazyTableImages" to be a useful and elegant way to display many images in a table view. It's important to a) keep the scrolling nice and smooth, and b) not freeze the user interface while downloading.
Have you tried using a UIImageView?