• 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
Re: IOS force hidden tab to adjust subviews after rotation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IOS force hidden tab to adjust subviews after rotation


  • Subject: Re: IOS force hidden tab to adjust subviews after rotation
  • From: Trygve Inda <email@hidden>
  • Date: Thu, 01 Aug 2013 10:23:30 -0700
  • Thread-topic: IOS force hidden tab to adjust subviews after rotation

> On Thu, Aug 1, 2013, at 08:48 AM, Trygve Inda wrote:
>> In my iOS app with two tabs, after the device is rotated, is there a way
>> to
>> force the hidden tab to re-layout its subviews BEFORE clicking that tab
>> to
>> make it visible?
>>
>> One of my tabs uses an image from another tab and I need it to adjust its
>> frame rect.
>
> Why does "using an image from another tab" involve adjusting its frame
> rect? UIImages don't have frames.
>
> --Kyle Sluder
>

Tab one has a ScrollView that has struts and springs to maintain full screen
size. This scrollview has three UIViews that together fill up more than one
screen (thus the scrollview).

Tab 2 needs a full-screen background image that is a darkened version of the
current position and view of the scroillview in tab 1.

If I have tab 2 selected and rotate the device, I need tab 1 to reconfigure
its views so that I can grab a "snapshot" of the scrollview in tab 1.

As it is now, tab one will not resize itself until it is selected.

If I can't figure this out, I'll have to put a similar scrollview in tab 2
that is just a copy of the one in tab 1, but that is less than ideal.



_______________________________________________

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


  • Follow-Ups:
    • Re: IOS force hidden tab to adjust subviews after rotation
      • From: Kyle Sluder <email@hidden>
References: 
 >Re: IOS force hidden tab to adjust subviews after rotation (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: IOS force hidden tab to adjust subviews after rotation
  • Next by Date: Re: IOS force hidden tab to adjust subviews after rotation
  • Previous by thread: Re: IOS force hidden tab to adjust subviews after rotation
  • Next by thread: Re: IOS force hidden tab to adjust subviews after rotation
  • Index(es):
    • Date
    • Thread