0

I'm trying develop my app for iphone 4 and 5. However I encountered problem with container view. My view looks like this:IB Image

Now, I tried to google a little bit, and found, that I can set size of my views in project settings by uploading picture in different sizes (so that all my views will get resized automatically). This is true for all my views except my container view.

So my second attempt was to size my view in appdelegate like this:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{

    _window.frame = CGRectMake(0, 0, 320, [[UIScreen mainScreen]bounds].size.height);
}

This unfortunately did nothing to my container view. Only solution I found so far, was to set height of my embedded table view, by setting it to 458 in size inspector in interface builder. This sets it to fit iphone 5 screen, however on iphone4 (and in simulator) it is too much and some of my rows are below screen (as I expected).

If anyone could help me, I'll be glad, because I really don't know how to deal with this problem ;)

4

1 に答える 1