Comments (12)
I'm running the demo with XCode 6 GM and it looks fine. Did you make any changes to the demo project?
from nhbalancedflowlayout.
No i haven't made any changes. I just downloaded the demo zip from github and run from xcode 6 GM. As you can see on the screenshot i have a layout that do not work properly. Don't you have the same layout as the one posted ?
from nhbalancedflowlayout.
from nhbalancedflowlayout.
Ok I see. can you try the same but with iOS 7.1 simulator instead of iOS 8 on iphone 6 ?
from nhbalancedflowlayout.
This is weird. I downloaded xcode 5 and tried the demo project on iOS 7.1 simulator and had the same issue. Then i clean the project and tried again. All is ok. I'll try the same with xcode 6 and let you know
from nhbalancedflowlayout.
I have installed back xCode 6 GM and the problem do not exists on iPhone 6 simulator with iOS 8. But even if i clean the problem occurs with iOS 7.1 iPhone 5S. Do you confirm the same ?
from nhbalancedflowlayout.
Yes I see the problem occur now. Doing a bit of digging, trying to figure out what is going on.
from nhbalancedflowlayout.
So far it looks like this is some kind of auto layout issue. The layout is correct, but the image views within the cells are not given the correct size
from nhbalancedflowlayout.
For some reason the contentView is not layed out correctly. I've found a workaround that seems to work for now. Just add these lines in ImageCell.m
- (void)layoutSubviews
{
[super layoutSubviews];
self.contentView.frame = self.bounds;
}
from nhbalancedflowlayout.
I have also fixed it using the following code in the ImageCell.m
-
(void)setBounds:(CGRect)bounds
{
[super setBounds:bounds];self.contentView.frame = bounds;
}
from nhbalancedflowlayout.
It's better not to override setBounds directly, but instead use layoutSubviews. Layoutsubviews will only be triggered when actually necessary.
from nhbalancedflowlayout.
Ok. thanks for your great lib and your support
from nhbalancedflowlayout.
Related Issues (20)
- Crash HOT 5
- Asynchronously loading preferredSizeForItemAtIndexPath
- maximumRowHeight or item height? HOT 5
- Adding new items to the collection rearranges old cells HOT 3
- Images are upscaled during the layout HOT 4
- Change back layout from UICollectionFlowLayout to NHBalancedFlowLayout cause crashes HOT 1
- Add supplementary views HOT 1
- How to use NHBalancedFlowLayout HOT 2
- Images does not fill cell frame HOT 3
- Not working without Xib file HOT 4
- Randomize cell size HOT 1
- Bug on reload
- how i can force it to make 2 2 2
- Load images remotely HOT 1
- Crash
- Performance on large camera roll HOT 2
- i need fix row height with horizontal scroll, but its not working HOT 1
- Huge amount of items
- Wrong collectionViewContentSize HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nhbalancedflowlayout.