• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Autosizing an iPhone
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Autosizing an iPhone


  • Subject: Autosizing an iPhone
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Thu, 28 Nov 2013 11:21:44 +0700

A universal app.
On iPad:
<UIView:; frame = (321 0; 447 1024);  with three subviews (top to bottom);
	<UINavigationBar:; frame = (0 0; 447 44); opaque = NO; autoresize = W+BM;
	<UIWebView: frame = (0 44; 447 936); clipsToBounds = YES; autoresize = W+H;
	<UIToolbar:; frame = (0 980; 447 44); opaque = NO; autoresize = W+TM;

This is all as it should be.


On iPhone it is more complicated:

<UIWindow:; frame = (0 0; 320 480); opaque = NO; autoresize = W+H;
	"<UIView:; frame = (0 0; 320 480); autoresize = W+H;
   	"<UILayoutContainerView:; frame = (0 0; 320 480); autoresize = W+H;

<UILayoutContainerView:
	"<UINavigationTransitionView:; frame = (0 0; 320 480); clipsToBounds = YES; autoresize = W+H;
   	"<UINavigationBar:; frame = (0 20; 320 44); opaque = NO; autoresize = W;  ,
  	"<UIToolbar:; frame = (0 436; 320 44); opaque = NO;

<UINavigationTransitionView:
  	"<UIViewControllerWrapperView:; frame = (0 0; 320 480); autoresize = W+H;

<UIViewControllerWrapperView:
  	 "<UIView:; frame = (-96 0; 320 480);
   	"<_UIParallaxDimmingView: 0x12e2dbb0; frame = (0 0; 320 480); opaque = NO;
   	"<UIView: 0x125dfe30; frame = (0 0; 320 480);

<UIView: 0x125dfe30;
  	"<_UIParallaxDimmingView: 0x12e2d7a0; frame = (0 0; 320 480); opaque = NO;

<_UIParallaxDimmingView:
   	"<UIImageView:; frame = (-9 0; 9 480); alpha = 0; opaque = NO;
   	"<UIView:; frame = (0 0; 320 480); autoresize = RM+BM;

<UIView:
	"<UIWebView: 0x125e1d60; frame = (0 240; 320 0); clipsToBounds = YES; autoresize = W+H;
Note: this WebView has a rather narrow height - making it very hard to see.

What I see is:
	top: Navigation bar (ok)
	middle: just background (+ maybe a very small WebView ?)
	botton: Toolbar (ok)

The WebView has constraints:
	Top Space to Navigation Bar = Auto (=0)
	Bottom Space to Toolbar = Auto (=0)
Works fine on iPad where the WebView lives in a view with its two siblings; but on iPhone the WebView is an only child - no idea how the autosizing is supposed to work in this case.

The iPhone shows the nib which contains Navigation Bar, WebView, ToolBar via:
	[ self.navigationController  pushViewController: self.detailViewController  animated: YES ];
navigationController  is an UINavigationController
detailViewController  is a subclass of UIViewController

Gerriet.



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Prev by Date: Re: Preferences caching?
  • Next by Date: Re: Preferences caching?
  • Previous by thread: Re: Preferences caching?
  • Next by thread: Localized time estimates?
  • Index(es):
    • Date
    • Thread