Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Tutorials > Tutorial Requests

Reply
 
LinkBack Thread Tools Display Modes
Old 09-29-2010, 08:59 AM   #1 (permalink)
MMS
Registered Member
 
Join Date: Nov 2009
Location: Connecticut
Posts: 95
MMS is on a distinguished road
Default autoresizingMask, autoresizing and resizing in response to orientation changes...

Seams like it should be simple but I've been all over Google and all through the Apple Developer materials and it's still not working for me- I want scrollviews and all of their subviews to autoresize in response to changes in interface orientation....

I have tried:

In IB- Live Autoresizing is checked.

In .m-

self.AOScroller = [[UIScrollView alloc] initWithFrame:[[self view]bounds]];
self.AOScroller.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;
self.AOScroller.autoresizesSubviews=YES;

And, of course, it does autorotate to interface orientation.


But...well, nothing. The view/subviews do not resize at all when the device is rotated.

It would be very helpful if someone would post a tutorial explaining coding of the autoresizingMask. (Or is someone could direct me to an existing tutorial that I haven't been able to find...)
__________________
Marjorie Sterne

Occhio Go - Venezia
MMS is offline   Reply With Quote
Reply

Bookmarks

Tags
autoresize, autoresizessubviews, autoresizingmask

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 441
16 members and 425 guests
cgokey, dcool, Dj_kades, Droverson, iAppDeveloper, ipodphone, karatebasker, laureix68, LunarMoon, patapple, Paul Slocum, peterwilli, pipposanta, QuantumDoja, SLIC, Sloshmonster
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,696
Threads: 94,139
Posts: 402,961
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jasper_muc
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:05 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0