bounds

How to present a "gallery" on the ipad?

Hi guys, I'm building an app for the ipad that uses the youtube api to get the video thumbnails and present them in a gallery (like the native youtube app on the ipad). Basically it's just a bunch of UIImageViews on a UIScrollView. Now the problem is that displaying all the images at once may cause the app to crash due to memory problem...

On-screen dimensions of a UIScrollView

I have a view controller containing a status bar and a navigation controller on top and under these a UIScrollView that fill up the remaining space. The ScrollView displays an image. Is it possible to read the on-screen dimensions of the ScrollView without any hard-coded pixel values? For the UIScrollView both frame and bounds return th...

Can jQuery copy an element's bounds (position, size, margins, etc.) to another element?

I have an element of an arbitrary type. I'd like to create another element, of either the same or a different type that has the same position and size as the first. The element may or may not be positioned. For example, I might start with a <select> with a certain size, possibly dependent on its contents, i.e. width/height auto. I wa...

UIView in UIView issue

Perhaps I'm missing a property or misunderstanding something but having issues with something simple. I have a UIView with a frame lets say of 100px high in which I have another UIView with lets say 50px high. If set the main UIView to 20px high the 50px high one is fully visible. I thought it might of been something to do with the boun...

[[UIScreen mainScreen] bounds] returns null?

When I try to get the bounds of the main screen with [[UIScreen mainScreen] bounds], it returns null. I've tried with [[UIScreen applicationFrame] bounds] as well, still returns null. The strange part is; if I do "NSLog(@"%@", [UIScreen mainScreen]);" it prints out the correct bounds, albeit I have no idea how to parse it, if it's even p...