Aand here's the code! Oddly, I never did quite solve the problem I
originally set out to solve; everything was happening correctly except that at
the last minute the cell was snapping back to its original size, even though
the constraints said clearly enough that it should not. However,
On Nov 2, 2012, at 10:41 AM, Luke Hiesterman wrote:
> it's not in the view hierarchy, in which case the autolayout engine won't do
> anything for you
Okay, the good news is that this turns out to be false! It turns out that you
*can* exercise the autolayout engine for any view hierarchy by sen
Aha. Yes, I did notice that I couldn't make constraints involving e.g. the
built-in textLabel object; it's as if it wasn't even in the interface.
The second part of your answer, that not being in the view hierarchy means the
autolayout engine won't operate, is the answer to my original question;
On Nov 2, 2012, at 10:22 AM, Matt Neuburg
wrote:
>
> On Nov 2, 2012, at 10:14 AM, Luke Hiesterman wrote:
>
>> UITableViewCell doesn't currently support autolayout
>
> I guess I'm having a little trouble understanding what that means. I am
> placing content interface inside the content view
On Nov 2, 2012, at 10:14 AM, Luke Hiesterman wrote:
> UITableViewCell doesn't currently support autolayout
I guess I'm having a little trouble understanding what that means. I am placing
content interface inside the content view of a UITableViewCell and handing
constraints to the cell, and au
UITableViewCell doesn't currently support autolayout, so no, you won't be able
to have the constraints system calculate the height for you.
Luke
On Nov 2, 2012, at 10:10 AM, Matt Neuburg wrote:
>
> On Nov 2, 2012, at 9:03 AM, Luke Hiesterman wrote:
>
>> Cells are sized according to the valu
On Nov 2, 2012, at 9:03 AM, Luke Hiesterman wrote:
> Cells are sized according to the value returned from heightForRowAtIndexPath:
Obviously. And that is why I am calculating (in advance) the value that I will
return from heightForRowAtIndexPath:. I've been doing that for years. The
question
Cells are sized according to the value returned from heightForRowAtIndexPath:.
You could theoretically call sizeToFit: on a cell you create inside that method
to get a height, but it would be very expensive to create a cell for every call
to this method. One technique you might try is to create
Okay, I have this wild and crazy idea. I've got a UITableView with cells that
have different heights. The cells' content consists almost entirely of
UILabels, and the height of each cell depends on what's going to go into those
labels - the cell needs to grow to accommodate the text of the label
[For the record, this is an iOS problem.]
On 24 Aug 2010, at 2:02 AM, Jennifer Usher wrote:
> EasterCalcResultsView *easterCalcResultsView =
> [[EasterCalcResultsView alloc] initWithNibName:@"EasterCalcResultsView"
> bundle:nil];
> [self.navigationController pushViewController
This might be a dumb question
I am trying to modify an example application created as a view based
application...
My application will take a date as input and then do some calculations. I then
want to output the data to a text view in a new view, or perhaps the same view
if I can modify i
Ok,
I have managed to get a beautiful shadow drawn in my rotating view (A
view I used to rotate images so they don't distort). The rotating view sits
inside an an image view. so it is layered as follows:
ImageView(parent)->rotatingView(child)->image
Anyway. I get a lovely shadow, but t
I either got no shadow, or a distorted image or the image went empty. Once in a
while I'd get a duplicate of the image blurred but it was not grey black like
shadow instead it was the color of the original.
On Dec 21, 2009, at 10:34 AM, David Duncan wrote:
> On Dec 21, 2009, at 7:38 AM, Devel
On Dec 21, 2009, at 7:38 AM, Development wrote:
> I asked about adding a shadow to a uiimage nestled within a uiimageview and
> no one seemed to know so I am wondering if it is even possible to add a
> shadow to a uiimage that way?
You seemed to have something that should work (creating a new
I asked about adding a shadow to a uiimage nestled within a uiimageview and no
one seemed to know so I am wondering if it is even possible to add a shadow to
a uiimage that way?___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post
On Sun, Apr 20, 2008 at 4:25 PM, Don Arnel <[EMAIL PROTECTED]> wrote:
> I have two different class objects that need to know about each other (see
> below). But if I include the header from one class inside the header of the
> other class the compiler complains. Is this even possible?
>
> ClassOne
You should avoid to include headers from other headers whenever
possible. It reduce include graph complexity and improve build time.
For example, you do not have to include the ClassTwo.h to declare a
ClassTwo ivar. Just tell the compiler that ClassTwo is a class (and
import ClassTwo.h from
I have two different class objects that need to know about each other
(see below). But if I include the header from one class inside the
header of the other class the compiler complains. Is this even possible?
ClassOne.h:
#import "ClassTwo.h"
@interface ClassOne : NSObject
18 matches
Mail list logo