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 07-17-2009, 09:15 PM   #1 (permalink)
New Member
 
Join Date: Jul 2009
Posts: 2
MahatmaManic is on a distinguished road
Default Resizing UITableViewCell as a subview

I have a UITableViewCell, which I want to add manually as a subview to a UIImageView. The imageview is set to automagically resize its subviews, but when the cell is added as a subview, it keeps its original size (too long horizontally and too short vertically).

I've tried a variety of things, from modifying the frame, modifying the bounds, and playing with the autoResizingMask of the parent view, but nothing seems to quite work properly. A few different solutions have seemed like they -sort- of work, but then move odd pieces of the cell (such as the disclosure) to an unexpected location on the screen.

Can anyone provide any insight as to why this might be happening, and how I might get the cell to play nicely with its new superview?
MahatmaManic is offline   Reply With Quote
Old 07-20-2009, 03:53 PM   #2 (permalink)
New Member
 
Join Date: Jul 2009
Posts: 2
MahatmaManic is on a distinguished road
Default

It looks like the thread has lots of views but no answers, and since I figured out something that seems to -mostly- work, I thought I would share in the hopes that it might prove handy to others.

If I set the frame values of the table view cell to be equal to the -bounds- values of the image view, -before- I insert the view cell as a subview, then it seems to mostly work the way I want. It still allows text to overflow the table cell if it's particularly long, but it is working way better than anything else I tried. If anyone else has an improvement let me know
MahatmaManic is offline   Reply With Quote
Reply

Bookmarks

Tags
resizing, subview, uitableviewcell

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: 323
9 members and 314 guests
chiataytuday, coolman, givensur, ipodphone, jbro, mottdog, mtl_tech_guy, Punkjumper, vilisei
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,649
Threads: 94,114
Posts: 402,882
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Anwerbl
Powered by vBadvanced CMPS v3.1.0

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