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 Development

Reply
 
LinkBack Thread Tools Display Modes
Old 11-21-2011, 02:08 PM   #1 (permalink)
Registered Member
 
Join Date: Nov 2011
Posts: 1
jozeIPhone is on a distinguished road
Default UITableViewCell resize trouble

Hi,

I have a custom cell that I extend from UITableViewCell. Inside it there's an UIScrollView that I add content to it.

I initialise it like that:
Code:
scrollView.contentSize = CGSizeMake(scrollView.frame.size.width * pages, scrollView.frame.size.height);
    scrollView.contentOffset = CGPointMake(scrollView.frame.size.width *[pageControl currentPage] , 0);
I put some autoresizing mask through the interface builder.

And I have an event: didRotateFromInterfaceOrientation for setting it up again when the device is rotate.

The trouble comes when the user access the View in Landscape mode! The UIScrollView seems to be resized after the cell is inserted and the didRotateFormInterfaceOrientation is not called obviously. I end up with a weird looking view.

If I them rotate to portrait and then back to landscape everything works fine! It is dam crazy! anybody ran into something similar? Maybe there is an event after the resizing mask takes effect?

regards and many thanks
jozeIPhone is offline   Reply With Quote
Reply

Bookmarks

Tags
autoresizing, mask, orientation, rotate, uiview

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: 391
15 members and 376 guests
7twenty7, chiataytuday, Clouds, dedeys78, Duncan C, e2applets, EvilElf, iekei, ipodphone, jeroenkeij, leostc, mbadegree, Murphy, QuantumDoja, Sami Gh
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,676
Threads: 94,125
Posts: 402,910
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jleannex55
Powered by vBadvanced CMPS v3.1.0

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