> On May 26, 2014, at 12:10 PM, Luke Hiesterman wrote:
>
> That is fine, but the statement made in your original email said “autolayout
> has assigned a frame to the cell.” You’re free to use autolayout inside the
> content view - just don’t try to layout the cell itself.
In practice, this res
Ah - so that was the `UICollectionViewFlowLayout` that did that (if
understand you correctly)?
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-de
That is fine, but the statement made in your original email said “autolayout
has assigned a frame to the cell.” You’re free to use autolayout inside the
content view - just don’t try to layout the cell itself.
Luke
On May 26, 2014, at 9:07 AM, Torsten Curdt
mailto:tcu...@vafer.org>> wrote:
I
I am not assigning a frame - but I am indeed assigning constraints to
the subviews of the UICollectionViewCell's content view:
https://github.com/tcurdt/paging-and-zooming/blob/master/Paging/TCPagingView.m#L17
That is not supported?
cheers,
Torsten
On Mon, May 26, 2014 at 5:59 PM, Luke Hiesterm
Why is autolayout assigning a frame to the cell? Are you putting autolayout
constraints on your cell? If so, shouldn’t be. The collection view assigns the
cell’s frame (according to the wishes of the assigned collectionViewLayout).
Setting the frame yourself, either by calling -setFrame or somet
OK, so it seems I explicitly need to call
[cell setNeedsLayout];
[cell layoutIfNeeded];
after the cell is configured.
I didn't think the `layoutIfNeeded` was necessary. That's a bit of a surprise.
The centering of the `UIScrollView` is still a bit funky though.
Based on the `contentOffs
On Apr 11, 2013, at 10:38 PM, cocoa-dev-requ...@lists.apple.com wrote:
> sampleImage is defined as
>
> @property (nonatomic, strong) UIImage *sampleImage;
>
> and initialized by
>
>self.sampleImage = [UIImage imageWithContentsOfFile:[[NSBundle mainBundle]
> pathForResource:@"earth" ofType
On Apr 11, 2013, at 8:48 PM, koko wrote:
>> Yep, you want to use registerNib:forCellWithReuseIdentifier:
>
Pilot Error … I had the UIImage view connected to the Files owner not the Cell
… all works now
Sorry for the noise!
-koko
___
Cocoa-dev ma
On Apr 11, 2013, at 8:25 PM, Luke the Hiesterman wrote:
> Yep, you want to use registerNib:forCellWithReuseIdentifier:
>
I don't think so as this example originally had a UIlabel which was set and
displayed properly.
I wanted to replace the UILabel with an image.
I do not use UINib *cellNib
Yep, you want to use registerNib:forCellWithReuseIdentifier:
If you register a class we just alloc/init it for you.
Luke
On Apr 11, 2013, at 7:24 PM, koko
wrote:
>
> On Apr 11, 2013, at 8:23 PM, Luke the Hiesterman wrote:
>
>> How are you registering the reuseIdentifier? Do you use registe
On Apr 11, 2013, at 8:23 PM, Luke the Hiesterman wrote:
> How are you registering the reuseIdentifier? Do you use registerClass or
> registerNib?
[self.collectionView registerClass:[CVCell class]
forCellWithReuseIdentifier:@"cvCell"];
___
Coco
How are you registering the reuseIdentifier? Do you use registerClass or
registerNib?
Luke
On Apr 11, 2013, at 7:10 PM, koko
wrote:
> I have subclassed UICollectionViewCell as Cell and defined a property:
>
> @property (nonatomic, strong) IBOutlet UIImageView *imageView;
>
> I have a Cell.x
12 matches
Mail list logo